From eb6e28c2e3f287b3d5c1a956c56a2027994f1cbc Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Thu, 16 Mar 2017 16:49:18 +0100 Subject: [PATCH] feat(src/main.cpp): supports opengl render on mac --- linphone-desktop/src/main.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/linphone-desktop/src/main.cpp b/linphone-desktop/src/main.cpp index 03f77219d..381f7541f 100644 --- a/linphone-desktop/src/main.cpp +++ b/linphone-desktop/src/main.cpp @@ -30,12 +30,8 @@ using namespace std; // ============================================================================= int main (int argc, char *argv[]) { - // Force OpenGLES & shader version 2.0. - QCoreApplication::setAttribute(Qt::AA_UseOpenGLES, true); - - QSurfaceFormat fmt; - fmt.setVersion(2, 0); - QSurfaceFormat::setDefaultFormat(fmt); + QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL, true); + QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); App app(argc, argv); app.parseArgs();