mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-21 23:25:09 +00:00
Autorelease the system default Metal device
This commit is contained in:
parent
fe6562e31c
commit
4aa2b8570c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue