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.