From d4e41c98b27da13915d6d035bcadc671e82bc018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 23 Jun 2016 15:14:12 -0700 Subject: [PATCH] iOS: Fixed build. --- src/renderer_mtl.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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)