Branimir Karadžić преди 9 години
родител
ревизия
d4e41c98b2
променени са 1 файла, в които са добавени 9 реда и са изтрити 2 реда
  1. 9 2
      src/renderer_mtl.h

+ 9 - 2
src/renderer_mtl.h

@@ -229,8 +229,15 @@ namespace bgfx { namespace mtl
 				);
 				);
 			return state;
 			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_END
 
 
 	MTL_CLASS(Function)
 	MTL_CLASS(Function)