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:
parent
6a6c9bcda2
commit
e45c93dbc7
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue