forked from qt-creator/qt-creator
Use angle on Windows
Many OpenGL drivers are still very unstable and we see many issues. Task-number: QTCREATORBUG-20067 Change-Id: Ifc1d5b2666f9cc69154032c3c4534cd96194110c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -313,6 +313,11 @@ void loadFonts()
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
if (!qEnvironmentVariableIsSet("QT_OPENGL"))
|
||||||
|
qputenv("QT_OPENGL", "angle");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR")
|
if (qEnvironmentVariableIsSet("QTCREATOR_DISABLE_NATIVE_MENUBAR")
|
||||||
|| qgetenv("XDG_CURRENT_DESKTOP").startsWith("Unity")) {
|
|| qgetenv("XDG_CURRENT_DESKTOP").startsWith("Unity")) {
|
||||||
QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
|
QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);
|
||||||
|
|||||||
Reference in New Issue
Block a user