Fix UASTC to EAC RG11 green channel selection

This commit is contained in:
Alexey Knyazev
2021-03-28 15:10:38 +04:00
committed by GitHub
parent 57b9051d94
commit 915b91b56c

View File

@@ -9455,7 +9455,7 @@ namespace basist
{
if (channel0 < 0)
channel0 = 0;
if (channel1 < 3)
if (channel1 < 0)
channel1 = 3;
status = transcode_uastc_to_etc2_eac_rg11(*pSource_block, pDst_block, high_quality, channel0, channel1);
break;