summaryrefslogtreecommitdiffstats
path: root/modules/etcpak
diff options
context:
space:
mode:
authorBlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>2024-02-24 12:41:08 +0100
committerBlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>2024-02-28 19:42:06 +0100
commit8239aeec8ede9c6fadec56e842665c392a835a0a (patch)
treead43a9a5ba025bc422590a794e4653ebf2093989 /modules/etcpak
parent2e7fc81315bfa8d0a15f60adff2a12b6f3104236 (diff)
downloadredot-engine-8239aeec8ede9c6fadec56e842665c392a835a0a.tar.gz
Image: Add static `is_format_compressed` function.
Diffstat (limited to 'modules/etcpak')
-rw-r--r--modules/etcpak/image_compress_etcpak.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/etcpak/image_compress_etcpak.cpp b/modules/etcpak/image_compress_etcpak.cpp
index 087d3a9314..5a470adc03 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) {