From 0763f2204ffaf14eb8f9c69675e6e3f42a4d9db9 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 20 Apr 2018 11:59:05 +0200 Subject: [PATCH] fix(AppController): remove opengl attributes --- src/app/AppController.cpp | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/app/AppController.cpp b/src/app/AppController.cpp index e3af58bd1..70550af21 100644 --- a/src/app/AppController.cpp +++ b/src/app/AppController.cpp @@ -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.