mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 15:55:39 +00:00
Add workaround for problems with Qt 6.0's Metal renderer
This commit is contained in:
parent
125d546cea
commit
fab142dd38
10
app/main.cpp
10
app/main.cpp
@ -343,6 +343,16 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(Q_OS_DARWIN) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
if (!qEnvironmentVariableIsSet("QSG_RHI_BACKEND")) {
|
||||||
|
// The Metal backend in Qt 6.0.0 causes really strange issues transitioning to
|
||||||
|
// full-screen in our SDL window (hangs in SDL's Cocoa_SetWindowFullscreenSpace())
|
||||||
|
// and breaks drawing our status updates in the StreamSegue, so use OpenGL like
|
||||||
|
// Qt 5 does until we figure out the cause of these issues.
|
||||||
|
qputenv("QSG_RHI_BACKEND", "opengl");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// We don't want system proxies to apply to us
|
// We don't want system proxies to apply to us
|
||||||
QNetworkProxyFactory::setUseSystemConfiguration(false);
|
QNetworkProxyFactory::setUseSystemConfiguration(false);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user