1
0
Fork 0

launcher: explicitly request desktop OpenGL

This should help with a white-screen in the launcher Gijs reported,
due to our Optimus selection symbol interacting weirdly with the
dynamic OpenGL detection in Qt
This commit is contained in:
James Turner 2018-04-27 09:53:49 +01:00
parent 6a6c9bcda2
commit e45c93dbc7

View file

@ -262,6 +262,10 @@ void initApp(int& argc, char** argv, bool doInitQSettings)
// whichever log locations SimGear has configured
qInstallMessageHandler(simgearMessageOutput);
// ensure we use desktop OpenGL, don't even fall back to ANGLE, since
// this gets into a knot on Optimus setups (since we export the magic
// Optimus / AMD symbols in main.cxx).
QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif