From 4955630ab0eb87cf37f2d0de5bdb7f438f9891f7 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Thu, 10 Apr 2014 20:18:16 -0700 Subject: [PATCH] Removed texture format check from Emscripten build (causes JS to stop responding). --- src/renderer_gl.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index e3646b01..80259db1 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -1284,12 +1284,15 @@ namespace bgfx } } - for (uint32_t ii = 0; ii < TextureFormat::Count; ++ii) + if (!BX_ENABLED(BX_PLATFORM_EMSCRIPTEN) ) { - if (TextureFormat::Unknown != ii - && TextureFormat::UnknownDepth != ii) + for (uint32_t ii = 0; ii < TextureFormat::Count; ++ii) { - s_textureFormat[ii].m_supported = isTextureFormatValid( (TextureFormat::Enum)ii); + if (TextureFormat::Unknown != ii + && TextureFormat::UnknownDepth != ii) + { + s_textureFormat[ii].m_supported = isTextureFormatValid( (TextureFormat::Enum)ii); + } } }