From 915b91b56cec0a3192e78db31a5da7df21af6ed8 Mon Sep 17 00:00:00 2001 From: Alexey Knyazev <3479527+lexaknyazev@users.noreply.github.com> Date: Sun, 28 Mar 2021 15:10:38 +0400 Subject: [PATCH] Fix UASTC to EAC RG11 green channel selection --- transcoder/basisu_transcoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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;