From 7d5013cefd55f7edd42c685fa0ddfa2c119605aa Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 15 Aug 2018 12:42:14 +0200 Subject: [PATCH] Use Qt::AA_UseOpenGLES instead of QT_OPENGL Environment variables are passed on to user applications, and we should avoid forcing ANGLE on these. Task-number: QTCREATORBUG-20808 Change-Id: Ia6663e4e2bc4f78ec053d100563a0f07d47092be Reviewed-by: Eike Ziller --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 1c7c3947607..c498db37593 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -379,7 +379,7 @@ int main(int argc, char **argv) { #ifdef Q_OS_WIN if (!qEnvironmentVariableIsSet("QT_OPENGL")) - qputenv("QT_OPENGL", "angle"); + QCoreApplication::setAttribute(Qt::AA_UseOpenGLES); #endif if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR")