mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Change BC4/5 to RGTC when extension is available.
This commit is contained in:
parent
6b9cc431fd
commit
1bb60c30f6
1 changed files with 8 additions and 0 deletions
|
@ -2058,6 +2058,14 @@ namespace bgfx
|
|||
}
|
||||
}
|
||||
|
||||
if (s_extension[Extension::EXT_texture_compression_rgtc].m_supported)
|
||||
{
|
||||
s_textureFormat[TextureFormat::BC4].m_fmt = GL_COMPRESSED_RED_RGTC1_EXT;
|
||||
s_textureFormat[TextureFormat::BC4].m_internalFmt = GL_COMPRESSED_RED_RGTC1_EXT;
|
||||
s_textureFormat[TextureFormat::BC5].m_fmt = GL_COMPRESSED_RED_GREEN_RGTC2_EXT;
|
||||
s_textureFormat[TextureFormat::BC5].m_internalFmt = GL_COMPRESSED_RED_GREEN_RGTC2_EXT;
|
||||
}
|
||||
|
||||
#if !BGFX_CONFIG_RENDERER_OPENGLES3
|
||||
if (NULL != glVertexAttribDivisor
|
||||
&& NULL != glDrawArraysInstanced
|
||||
|
|
Loading…
Reference in a new issue