diff --git a/lib/graphicsdev/Metal.mm b/lib/graphicsdev/Metal.mm index a542c21..a54c316 100644 --- a/lib/graphicsdev/Metal.mm +++ b/lib/graphicsdev/Metal.mm @@ -386,6 +386,7 @@ class MetalTextureD : public GraphicsDataNode { break; default: Log.report(logvisor::Fatal, "unsupported tex format"); + return; } m_cpuSz = width * height * m_pxPitch;