Fixed minor memory leak in the Metal renderer
This commit is contained in:
parent
644fefb7ac
commit
d8cb066822
1 changed files with 4 additions and 0 deletions
|
@ -736,6 +736,10 @@ METAL_RenderPresent(SDL_Renderer * renderer)
|
|||
}];
|
||||
#endif
|
||||
[data.mtlcmdbuffer commit];
|
||||
#if !__has_feature(objc_arc)
|
||||
[data.mtlcmdencoder release];
|
||||
[data.mtlcmdbuffer release];
|
||||
#endif
|
||||
data.beginScene = YES;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue