summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-14 14:09:56 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-14 14:09:56 -0500
commita1e768c50810e67cd5bdbb8f3f6a661f26fdb03b (patch)
treee6004a197430da295bb39fad8dd33b68104bc177 /core
parent3fcbb1d4365771687accbf09b88a77f44e9e34e8 (diff)
parent95fd45d9a5d0a0efe074bc40ff854d9d008ed7d9 (diff)
downloadredot-engine-a1e768c50810e67cd5bdbb8f3f6a661f26fdb03b.tar.gz
Merge pull request #97295 from BlueCube3310/betsy-bc4
Betsy: Implement BC4 compression
Diffstat (limited to 'core')
-rw-r--r--core/io/image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/image.cpp b/core/io/image.cpp
index aa391b77dd..d782af931f 100644
--- a/core/io/image.cpp
+++ b/core/io/image.cpp
@@ -2751,7 +2751,7 @@ Error Image::compress_from_channels(CompressMode p_mode, UsedChannels p_channels
case COMPRESS_S3TC: {
// BC3 is unsupported currently.
- if ((p_channels == USED_CHANNELS_RGB || p_channels == USED_CHANNELS_L) && _image_compress_bc_rd_func) {
+ if ((p_channels == USED_CHANNELS_R || p_channels == USED_CHANNELS_RGB || p_channels == USED_CHANNELS_L) && _image_compress_bc_rd_func) {
Error result = _image_compress_bc_rd_func(this, p_channels);
// If the image was compressed successfully, we return here. If not, we fall back to the default compression scheme.