Removed texture format check from Emscripten build (causes JS to stop responding).

This commit is contained in:
bkaradzic 2014-04-10 20:18:16 -07:00
parent aadd9bd1c1
commit 4955630ab0

View file

@ -1284,6 +1284,8 @@ namespace bgfx
}
}
if (!BX_ENABLED(BX_PLATFORM_EMSCRIPTEN) )
{
for (uint32_t ii = 0; ii < TextureFormat::Count; ++ii)
{
if (TextureFormat::Unknown != ii
@ -1292,6 +1294,7 @@ namespace bgfx
s_textureFormat[ii].m_supported = isTextureFormatValid( (TextureFormat::Enum)ii);
}
}
}
uint64_t supportedCompressedFormats = 0
| (s_textureFormat[TextureFormat::BC1 ].m_supported ? BGFX_CAPS_TEXTURE_FORMAT_BC1 : 0)