From 1c36c2855ed250674f44bd3fafda08cfd7f6a75d Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 31 Mar 2020 16:35:48 +0200 Subject: [PATCH] Reorder Application attributes before creating QCoreApplication to comply of framework expectations --- linphone-app/src/app/AppController.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linphone-app/src/app/AppController.cpp b/linphone-app/src/app/AppController.cpp index 8ff45ec84..8dedc94ea 100644 --- a/linphone-app/src/app/AppController.cpp +++ b/linphone-app/src/app/AppController.cpp @@ -42,14 +42,14 @@ AppController::AppController (int &argc, char *argv[]) { Q_ASSERT(!mApp); // Disable QML cache. Avoid malformed cache. qputenv("QML_DISABLE_DISK_CACHE", "true"); - + QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); + // Useful to share camera on Fullscreen (other context). + QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); + mApp = new App(argc, argv); // --------------------------------------------------------------------------- - QGuiApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); - // Useful to share camera on Fullscreen (other context). - QApplication::setAttribute(Qt::AA_ShareOpenGLContexts); // --------------------------------------------------------------------------- // App creation.