mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed minor memory leak in the Metal renderer
This commit is contained in:
parent
cac4e31261
commit
5182c23c6b
@ -736,6 +736,10 @@ METAL_RenderPresent(SDL_Renderer * renderer)
|
|||||||
}];
|
}];
|
||||||
#endif
|
#endif
|
||||||
[data.mtlcmdbuffer commit];
|
[data.mtlcmdbuffer commit];
|
||||||
|
#if !__has_feature(objc_arc)
|
||||||
|
[data.mtlcmdencoder release];
|
||||||
|
[data.mtlcmdbuffer release];
|
||||||
|
#endif
|
||||||
data.beginScene = YES;
|
data.beginScene = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user