mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 01:54:42 +00:00
fix: Snapshot w/ transparency on Linux
This commit is contained in:
parent
f6c6675baa
commit
8c4fc19c73
@ -23,6 +23,7 @@
|
||||
#include <common/mlapplication.h>
|
||||
#include <QMessageBox>
|
||||
#include "mainwindow.h"
|
||||
#include <QGLFormat>
|
||||
#include <QString>
|
||||
#include <clocale>
|
||||
|
||||
@ -40,7 +41,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
QString tmp = MeshLabApplication::appArchitecturalName(MeshLabApplication::HW_ARCHITECTURE(QSysInfo::WordSize));
|
||||
QCoreApplication::setApplicationName(MeshLabApplication::appArchitecturalName(MeshLabApplication::HW_ARCHITECTURE(QSysInfo::WordSize)));
|
||||
|
||||
|
||||
QGLFormat fmt = QGLFormat::defaultFormat();
|
||||
fmt.setAlphaBufferSize(8);
|
||||
QGLFormat::setDefaultFormat(fmt);
|
||||
|
||||
MainWindow window;
|
||||
window.showMaximized();
|
||||
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
#include "../meshlab/mainwindow.h"
|
||||
#include <clocale>
|
||||
|
||||
#include <QGLFormat>
|
||||
#include <QFileInfo>
|
||||
|
||||
|
||||
@ -734,6 +735,10 @@ int main(int argc, char *argv[])
|
||||
std::ptrdiff_t maxgpumem = (std::ptrdiff_t) gpumemmb * (float)(1024 * 1024);
|
||||
vcg::QtThreadSafeMemoryInfo gpumeminfo(maxgpumem);
|
||||
|
||||
QGLFormat fmt = QGLFormat::defaultFormat();
|
||||
fmt.setAlphaBufferSize(8);
|
||||
QGLFormat::setDefaultFormat(fmt);
|
||||
|
||||
MeshDocument meshDocument;
|
||||
|
||||
MLSceneGLSharedDataContext shared(meshDocument, gpumeminfo, MeshLabScalarTest<MESHLAB_SCALAR>::doublePrecision(), 100000,100000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user