From fa6977f99442d8410940bdcdde2911d52c200f08 Mon Sep 17 00:00:00 2001 From: Harold Comere Date: Mon, 7 Nov 2016 18:32:03 +0100 Subject: [PATCH] * Fix AsmJS D16 D24S8 format / internal format match (#966) --- 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 59e2bfb71..9017c00ca 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -1727,7 +1727,7 @@ namespace bgfx { namespace gl s_textureFilter[TextureFormat::RGBA32F] = linear32F; } - if (BX_ENABLED(BX_PLATFORM_IOS) ) + if (BX_ENABLED(BX_PLATFORM_IOS) || 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);