Fix Metal renderer compilation on iOS

This commit is contained in:
wheremyfoodat 2025-03-05 02:06:10 +02:00 committed by GitHub
parent 7af8736f91
commit 0a65519867
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ namespace Metal {
} else if (std::is_same<Format_t, PICA::DepthFmt>::value) { } else if (std::is_same<Format_t, PICA::DepthFmt>::value) {
pixelFormat = PICA::toMTLPixelFormatDepth((PICA::DepthFmt)format); pixelFormat = PICA::toMTLPixelFormatDepth((PICA::DepthFmt)format);
} else { } else {
panic("Invalid format type"); Helpers::panic("Invalid format type");
} }
MTL::TextureDescriptor* descriptor = MTL::TextureDescriptor::alloc()->init(); MTL::TextureDescriptor* descriptor = MTL::TextureDescriptor::alloc()->init();