diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-02 14:01:18 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-02 14:01:18 +0200 |
commit | 28a18cf1b8f4d50884954ee65eca4f2799b7130e (patch) | |
tree | 213dae03e67bb780202215bdfbf757410e84b7c5 /modules/etcpak | |
parent | 396ce1a8c8a69a8a1448fcc9321bf055ae9fb5f1 (diff) | |
parent | 8239aeec8ede9c6fadec56e842665c392a835a0a (diff) | |
download | redot-engine-28a18cf1b8f4d50884954ee65eca4f2799b7130e.tar.gz |
Merge pull request #88763 from BlueCube3310/image-is-compressed-static
Image: Add static `is_format_compressed` function.
Diffstat (limited to 'modules/etcpak')
-rw-r--r-- | modules/etcpak/image_compress_etcpak.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/etcpak/image_compress_etcpak.cpp b/modules/etcpak/image_compress_etcpak.cpp index dcd73101c2..4ce0cf50d9 100644 --- a/modules/etcpak/image_compress_etcpak.cpp +++ b/modules/etcpak/image_compress_etcpak.cpp @@ -92,7 +92,7 @@ void _compress_etcpak(EtcpakType p_compresstype, Image *r_img) { uint64_t start_time = OS::get_singleton()->get_ticks_msec(); Image::Format img_format = r_img->get_format(); - if (img_format >= Image::FORMAT_DXT1) { + if (Image::is_format_compressed(img_format)) { return; // Do not compress, already compressed. } if (img_format > Image::FORMAT_RGBA8) { |