Mac: Fix port leak

This commit is contained in:
Michael Buckley 2022-11-05 12:08:09 -07:00
parent 96983736ad
commit 6ac52499ba
1 changed files with 72 additions and 70 deletions

View File

@ -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)