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,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);
}
}
}