mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 16:17:20 +00:00
Enable Metal validation in debug builds
This commit is contained in:
1 parent
80242f2e90
commit
5bd0dea85d
1 file changed
+6
@@ -418,6 +418,12 @@ int main(int argc, char *argv[])
|
||||
qputenv("QSG_RENDER_LOOP", "basic");
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_DARWIN) && defined(QT_DEBUG)
|
||||
// Enable Metal valiation for debug builds
|
||||
qputenv("MTL_DEBUG_LAYER", "1");
|
||||
qputenv("MTL_SHADER_VALIDATION", "1");
|
||||
#endif
|
||||
|
||||
// We don't want system proxies to apply to us
|
||||
QNetworkProxyFactory::setUseSystemConfiguration(false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user