mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-06 20:23:08 +00:00
fix(AppController): remove opengl attributes
This commit is contained in:
parent
0c8aea3d00
commit
0763f2204f
1 changed files with 1 additions and 28 deletions
|
|
@ -49,36 +49,9 @@ AppController::AppController (int &argc, char *argv[]) {
|
|||
// Disable QML cache. Avoid malformed cache.
|
||||
qputenv("QML_DISABLE_DISK_CACHE", "true");
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// OpenGL properties.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// Options to get a nice video render.
|
||||
#ifdef Q_OS_WIN
|
||||
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true);
|
||||
#else
|
||||
QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL, true);
|
||||
#endif // ifdef Q_OS_WIN
|
||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
|
||||
|
||||
{
|
||||
QSurfaceFormat format;
|
||||
|
||||
format.setSwapBehavior(QSurfaceFormat::TripleBuffer);
|
||||
format.setSwapInterval(1);
|
||||
|
||||
format.setRedBufferSize(8);
|
||||
format.setGreenBufferSize(8);
|
||||
format.setBlueBufferSize(8);
|
||||
format.setAlphaBufferSize(8);
|
||||
|
||||
format.setDepthBufferSize(24);
|
||||
format.setStencilBufferSize(8);
|
||||
|
||||
QSurfaceFormat::setDefaultFormat(format);
|
||||
}
|
||||
|
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true);
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// App creation.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue