mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-20 15:27:17 +00:00
Autorelease the system default Metal device
This commit is contained in:
1 parent
fe6562e31c
commit
4aa2b8570c
1 file changed
+1
-1
@@ -610,7 +610,7 @@ public:
|
||||
if (qgetenv("VT_FORCE_METAL") == "1") {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Using Metal renderer due to VT_FORCE_METAL=1 override.");
|
||||
return MTLCreateSystemDefaultDevice();
|
||||
return [MTLCreateSystemDefaultDevice() autorelease];
|
||||
}
|
||||
else {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
|
||||
Reference in new issue
Block a user