mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Autorelease the system default Metal device
This commit is contained in:
@@ -610,7 +610,7 @@ public:
|
|||||||
if (qgetenv("VT_FORCE_METAL") == "1") {
|
if (qgetenv("VT_FORCE_METAL") == "1") {
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Using Metal renderer due to VT_FORCE_METAL=1 override.");
|
"Using Metal renderer due to VT_FORCE_METAL=1 override.");
|
||||||
return MTLCreateSystemDefaultDevice();
|
return [MTLCreateSystemDefaultDevice() autorelease];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
|
|||||||
Reference in New Issue
Block a user