mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
GL: Fixed ETC1 format override logic.
This commit is contained in:
parent
eefa378449
commit
f88da8bea4
1 changed files with 2 additions and 1 deletions
|
@ -2397,7 +2397,8 @@ namespace bgfx
|
|||
s_textureFormat[TextureFormat::ETC2A ].m_supported = etc2Supported;
|
||||
s_textureFormat[TextureFormat::ETC2A1].m_supported = etc2Supported;
|
||||
|
||||
if (etc2Supported)
|
||||
if (!s_textureFormat[TextureFormat::ETC1].m_supported
|
||||
&& etc2Supported)
|
||||
{
|
||||
// When ETC2 is supported override ETC1 texture format settings.
|
||||
s_textureFormat[TextureFormat::ETC1].m_internalFmt = GL_COMPRESSED_RGB8_ETC2;
|
||||
|
|
Loading…
Reference in a new issue