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>
This commit is contained in:
Thomas Hartmann
2018-08-15 12:42:14 +02:00
parent 58747b2de1
commit 7d5013cefd

View File

@@ -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")