Metal: Use std::unique_ptr for texture decode

This commit is contained in:
wheremyfoodat
2025-03-16 13:52:32 +02:00
parent fa123cea3f
commit e635b9ec8a
5 changed files with 95 additions and 92 deletions

View File

@@ -128,7 +128,7 @@ void RendererMTL::display() {
}
void RendererMTL::initGraphicsContext(SDL_Window* window) {
// On iOS, the SwiftUI side handles MetalLayer & the CommandQueue
// On iOS, the SwiftUI side handles the MetalLayer
#ifdef PANDA3DS_IOS
device = MTL::CreateSystemDefaultDevice();
#else
@@ -138,7 +138,7 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
device = MTL::CreateSystemDefaultDevice();
metalLayer->setDevice(device);
#endif
checkForMTLPixelFormatSupport(device);
checkForMTLPixelFormatSupport(device);
commandQueue = device->newCommandQueue();