From 0a655198676f7620403f1abae5be2631758f51d2 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Wed, 5 Mar 2025 02:06:10 +0200 Subject: [PATCH] Fix Metal renderer compilation on iOS --- include/renderer_mtl/mtl_render_target.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/renderer_mtl/mtl_render_target.hpp b/include/renderer_mtl/mtl_render_target.hpp index 8f80ea64..65f921da 100644 --- a/include/renderer_mtl/mtl_render_target.hpp +++ b/include/renderer_mtl/mtl_render_target.hpp @@ -57,7 +57,7 @@ namespace Metal { } else if (std::is_same<Format_t, PICA::DepthFmt>::value) { pixelFormat = PICA::toMTLPixelFormatDepth((PICA::DepthFmt)format); } else { - panic("Invalid format type"); + Helpers::panic("Invalid format type"); } MTL::TextureDescriptor* descriptor = MTL::TextureDescriptor::alloc()->init();