From 2407792d0d9ef1b07bd98646d382bfab9fe76ae6 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 13 Mar 2018 13:54:22 +0100 Subject: [PATCH] Use angle on Windows Many OpenGL drivers are still very unstable and we see many issues. Task-number: QTCREATORBUG-20067 Change-Id: Ifc1d5b2666f9cc69154032c3c4534cd96194110c Reviewed-by: Eike Ziller Reviewed-by: Alessandro Portale --- src/app/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index cf33b466757..b96d39225c5 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -313,6 +313,11 @@ void loadFonts() int main(int argc, char **argv) { +#ifdef Q_OS_WIN + if (!qEnvironmentVariableIsSet("QT_OPENGL")) + qputenv("QT_OPENGL", "angle"); +#endif + if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR") || qgetenv("XDG_CURRENT_DESKTOP").startsWith("Unity")) { QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);