diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-14 14:09:56 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-14 14:09:56 -0500 |
commit | a1e768c50810e67cd5bdbb8f3f6a661f26fdb03b (patch) | |
tree | e6004a197430da295bb39fad8dd33b68104bc177 /core | |
parent | 3fcbb1d4365771687accbf09b88a77f44e9e34e8 (diff) | |
parent | 95fd45d9a5d0a0efe074bc40ff854d9d008ed7d9 (diff) | |
download | redot-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.cpp | 2 |
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. |