commit | 915b91b56cec0a3192e78db31a5da7df21af6ed8 | [log] [tgz] |
---|---|---|
author | Alexey Knyazev <3479527+lexaknyazev@users.noreply.github.com> | Sun Mar 28 15:10:38 2021 +0400 |
committer | GitHub <noreply@github.com> | Sun Mar 28 15:10:38 2021 +0400 |
tree | 8b9591fe8aa2d7437431de598125e4fda8d789f6 | |
parent | 57b9051d94ea172406c2d99518028b797070235d [diff] |
Fix UASTC to EAC RG11 green channel selection
diff --git a/transcoder/basisu_transcoder.cpp b/transcoder/basisu_transcoder.cpp index 3087539..a23be42 100644 --- a/transcoder/basisu_transcoder.cpp +++ b/transcoder/basisu_transcoder.cpp
@@ -9455,7 +9455,7 @@ { 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;