diff options
author | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-09-21 22:12:28 +0200 |
---|---|---|
committer | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-09-22 10:16:37 +0200 |
commit | 95fd45d9a5d0a0efe074bc40ff854d9d008ed7d9 (patch) | |
tree | 8a1413fd68b0e26dafeb86bfdeb5f24c2d528399 /core | |
parent | e4e024ab88efe74677769395886bc1b09eccbac7 (diff) | |
download | redot-engine-95fd45d9a5d0a0efe074bc40ff854d9d008ed7d9.tar.gz |
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. |