mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-04 00:36:36 +00:00
Only set QT_OPENGL if it's not already set
This commit is contained in:
parent
8a0089eb81
commit
fdbb1c8d72
@ -266,9 +266,12 @@ int main(int argc, char *argv[])
|
|||||||
qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", QByteArray("1"));
|
qputenv("QT_SSL_USE_TEMPORARY_KEYCHAIN", QByteArray("1"));
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
// On Windows, use ANGLE so we don't have to load both DX and OGL
|
if (!qEnvironmentVariableIsSet("QT_OPENGL")) {
|
||||||
// user-mode drivers into our app.
|
// On Windows, use ANGLE so we don't have to load OpenGL
|
||||||
|
// user-mode drivers into our app. OGL drivers (especially Intel)
|
||||||
|
// seem to crash Moonlight far more often than DirectX.
|
||||||
qputenv("QT_OPENGL", "angle");
|
qputenv("QT_OPENGL", "angle");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Register custom metatypes for use in signals
|
// Register custom metatypes for use in signals
|
||||||
|
Loading…
x
Reference in New Issue
Block a user