diff --git a/src/renderer_mtl.h b/src/renderer_mtl.h index db90813b3..be9997812 100644 --- a/src/renderer_mtl.h +++ b/src/renderer_mtl.h @@ -229,8 +229,15 @@ namespace bgfx { namespace mtl ); return state; } - - bool depth24Stencil8PixelFormatSupported() { return m_obj.depth24Stencil8PixelFormatSupported; } + + bool depth24Stencil8PixelFormatSupported() + { +#if BX_PLATFORM_IOS + return false; +#else + return m_obj.depth24Stencil8PixelFormatSupported; +#endif // BX_PLATFORM_IOS + } MTL_CLASS_END MTL_CLASS(Function)