summaryrefslogtreecommitdiffstats
path: root/core/io
diff options
context:
space:
mode:
authorSpartan322 <Megacake1234@gmail.com>2024-10-15 06:49:10 -0400
committerSpartan322 <Megacake1234@gmail.com>2024-10-15 06:49:10 -0400
commit8043cc1e0d288d7b517d13f14c912c636293cc8b (patch)
tree79fdac1a76ad232c040f25a4fbae974ac245edda /core/io
parent7894cd1a5a680020c51e0df96ce8675ad647d91b (diff)
parentaf77100e394dcaca609b15bef815ed17475e51ed (diff)
downloadredot-engine-8043cc1e0d288d7b517d13f14c912c636293cc8b.tar.gz
Merge commit godotengine/godot@af77100e394dcaca609b15bef815ed17475e51ed
Diffstat (limited to 'core/io')
-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 6c582eb3d0..b7af940ad7 100644
--- a/core/io/image.cpp
+++ b/core/io/image.cpp
@@ -2753,7 +2753,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.