From 6284cde9d647f3c8a96c8c8f635f14999053db73 Mon Sep 17 00:00:00 2001 From: Boris Shirvinskii Date: Wed, 4 Dec 2019 19:13:59 +0200 Subject: [PATCH] [iOS] disabling D16 and D24S8 texture formats as it appears they are not supported tested on the full range of iOS devices from iPhone 5s to iPhone 11 --- src/renderer_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index dadfb5c2d..bd04f6f5e 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2086,7 +2086,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) ); s_textureFilter[TextureFormat::RGBA32F] = linear32F; } - if (BX_ENABLED(BX_PLATFORM_IOS) || BX_ENABLED(BX_PLATFORM_EMSCRIPTEN)) + if (BX_ENABLED(BX_PLATFORM_EMSCRIPTEN)) { setTextureFormat(TextureFormat::D16, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT); setTextureFormat(TextureFormat::D24S8, GL_DEPTH_STENCIL, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8);