mirror of https://github.com/snes9xgit/snes9x.git
Mac: Fix port leak
This commit is contained in:
parent
96983736ad
commit
6ac52499ba
|
@ -303,6 +303,7 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
|
|||
|
||||
CGSize layerSize = metalLayer.bounds.size;
|
||||
|
||||
@autoreleasepool {
|
||||
MTLTextureDescriptor *textureDescriptor = [MTLTextureDescriptor new];
|
||||
textureDescriptor.pixelFormat = MTLPixelFormatRGBA8Unorm;
|
||||
textureDescriptor.width = width;
|
||||
|
@ -376,6 +377,7 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
|
|||
[drawable present];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void S9xTextMode (void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue