aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2018-08-15 12:42:14 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2018-08-15 10:46:46 +0000
commit7d5013cefd55f7edd42c685fa0ddfa2c119605aa (patch)
tree0c618533098ea874cdc45ed14035def7fb1d362a /src/app
parent58747b2de107e8f6ac00daeb431ecbf3e603fd34 (diff)
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 <eike.ziller@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp2
1 files changed, 1 insertions, 1 deletions
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")