mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-27 00:53:59 -05:00
Fixed Emscripten.
This commit is contained in:
parent
78f415e812
commit
ca3a6e5c84
1 changed files with 2 additions and 1 deletions
|
@ -1165,7 +1165,8 @@ namespace bgfx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isTextureFormatValid(TextureFormat::R8) )
|
if (BX_ENABLED(BX_PLATFORM_EMSCRIPTEN)
|
||||||
|
|| !isTextureFormatValid(TextureFormat::R8) )
|
||||||
{
|
{
|
||||||
// GL core has to use GL_R8 Issue#208, GLES2 has to use GL_LUMINANCE issue#226
|
// GL core has to use GL_R8 Issue#208, GLES2 has to use GL_LUMINANCE issue#226
|
||||||
s_textureFormat[TextureFormat::R8].m_internalFmt = GL_LUMINANCE;
|
s_textureFormat[TextureFormat::R8].m_internalFmt = GL_LUMINANCE;
|
||||||
|
|
Loading…
Reference in a new issue