From 7077563adc052cbcf4a1ce68037df2425a91e057 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 22 Mar 2017 16:01:01 +0100 Subject: [PATCH] Do not use desktop OpenGL on Windows. --- linphone-desktop/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linphone-desktop/src/main.cpp b/linphone-desktop/src/main.cpp index af17dd09f..1e6623076 100644 --- a/linphone-desktop/src/main.cpp +++ b/linphone-desktop/src/main.cpp @@ -34,7 +34,11 @@ int main (int argc, char *argv[]) { qputenv("QML_DISABLE_DISK_CACHE", "true"); // Options to get a nice video render. +#ifdef _WIN32 + QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); +#else QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL, true); +#endif QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); {