mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Override ETC1 format settings when ETC2 is available.
This commit is contained in:
parent
528a725387
commit
eefa378449
1 changed files with 8 additions and 0 deletions
|
@ -2397,6 +2397,14 @@ namespace bgfx
|
|||
s_textureFormat[TextureFormat::ETC2A ].m_supported = etc2Supported;
|
||||
s_textureFormat[TextureFormat::ETC2A1].m_supported = etc2Supported;
|
||||
|
||||
if (etc2Supported)
|
||||
{
|
||||
// When ETC2 is supported override ETC1 texture format settings.
|
||||
s_textureFormat[TextureFormat::ETC1].m_internalFmt = GL_COMPRESSED_RGB8_ETC2;
|
||||
s_textureFormat[TextureFormat::ETC1].m_fmt = GL_COMPRESSED_RGB8_ETC2;
|
||||
s_textureFormat[TextureFormat::ETC1].m_supported = true;
|
||||
}
|
||||
|
||||
bool ptc1Supported = s_extension[Extension::IMG_texture_compression_pvrtc ].m_supported;
|
||||
s_textureFormat[TextureFormat::PTC12].m_supported = ptc1Supported;
|
||||
s_textureFormat[TextureFormat::PTC14].m_supported = ptc1Supported;
|
||||
|
|
Loading…
Reference in a new issue