mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-24 00:47:23 +00:00
Only set QT_OPENGL if it's not already set
This commit is contained in:
@@ -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
|
||||||
qputenv("QT_OPENGL", "angle");
|
// user-mode drivers into our app. OGL drivers (especially Intel)
|
||||||
|
// seem to crash Moonlight far more often than DirectX.
|
||||||
|
qputenv("QT_OPENGL", "angle");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Register custom metatypes for use in signals
|
// Register custom metatypes for use in signals
|
||||||
|
|||||||
Reference in New Issue
Block a user