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…
Add table
Add a link
Reference in a new issue