Merge pull request #219 from lexaknyazev/patch-1
Fix UASTC to EAC RG11 green channel selection
diff --git a/transcoder/basisu_transcoder.cpp b/transcoder/basisu_transcoder.cpp
index 17c893e..e304907 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;