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