diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-08-15 12:42:14 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-08-15 10:46:46 +0000 |
commit | 7d5013cefd55f7edd42c685fa0ddfa2c119605aa (patch) | |
tree | 0c618533098ea874cdc45ed14035def7fb1d362a /src/app | |
parent | 58747b2de107e8f6ac00daeb431ecbf3e603fd34 (diff) | |
download | qt-creator-7d5013cefd55f7edd42c685fa0ddfa2c119605aa.tar.gz |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index 1c7c394760..c498db3759 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") |