mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Merge pull request #42 from rogual/fix-srgb-ktx-load
Fix bug where loading uncompressed sRGB KTX files would swap B/R
This commit is contained in:
@@ -4011,7 +4011,8 @@ namespace bimg
|
||||
break;
|
||||
}
|
||||
|
||||
if (s_translateKtxFormat[ii].m_internalFmtSrgb == glInternalFormat)
|
||||
if (s_translateKtxFormat[ii].m_internalFmtSrgb == glInternalFormat
|
||||
&& s_translateKtxFormat[ii].m_fmt == glBaseInternalFormat)
|
||||
{
|
||||
format = TextureFormat::Enum(ii);
|
||||
srgb = true;
|
||||
|
||||
Reference in New Issue
Block a user