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;
|
CGSize layerSize = metalLayer.bounds.size;
|
||||||
|
|
||||||
|
@autoreleasepool {
|
||||||
MTLTextureDescriptor *textureDescriptor = [MTLTextureDescriptor new];
|
MTLTextureDescriptor *textureDescriptor = [MTLTextureDescriptor new];
|
||||||
textureDescriptor.pixelFormat = MTLPixelFormatRGBA8Unorm;
|
textureDescriptor.pixelFormat = MTLPixelFormatRGBA8Unorm;
|
||||||
textureDescriptor.width = width;
|
textureDescriptor.width = width;
|
||||||
|
@ -375,6 +376,7 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
|
||||||
|
|
||||||
[drawable present];
|
[drawable present];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void S9xTextMode (void)
|
void S9xTextMode (void)
|
||||||
|
|
Loading…
Reference in New Issue