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,8 +4011,9 @@ namespace bimg
|
|||||||
break;
|
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);
|
format = TextureFormat::Enum(ii);
|
||||||
srgb = true;
|
srgb = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user