forked from qt-creator/qt-creator
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:
@@ -379,7 +379,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
if (!qEnvironmentVariableIsSet("QT_OPENGL"))
|
if (!qEnvironmentVariableIsSet("QT_OPENGL"))
|
||||||
qputenv("QT_OPENGL", "angle");
|
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR")
|
if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR")
|
||||||
|
Reference in New Issue
Block a user