mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Removed texture format check from Emscripten build (causes JS to stop responding).
This commit is contained in:
parent
aadd9bd1c1
commit
4955630ab0
1 changed files with 7 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue