From f84c6df8d1aec35fe53521f241b26fc5312d26e3 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Thu, 27 Apr 2023 10:54:25 -0700 Subject: [PATCH] Use DXT1 when compressing PNGs with RGB format This results in much smaller file sizes with the same quality --- modules/etcpak/image_compress_etcpak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/etcpak/image_compress_etcpak.cpp b/modules/etcpak/image_compress_etcpak.cpp index 16a59d3880c..14cce2686c6 100644 --- a/modules/etcpak/image_compress_etcpak.cpp +++ b/modules/etcpak/image_compress_etcpak.cpp @@ -66,7 +66,7 @@ EtcpakType _determine_dxt_type(Image::UsedChannels p_channels) { case Image::USED_CHANNELS_RG: return EtcpakType::ETCPAK_TYPE_DXT5_RA_AS_RG; case Image::USED_CHANNELS_RGB: - return EtcpakType::ETCPAK_TYPE_DXT5; + return EtcpakType::ETCPAK_TYPE_DXT1; case Image::USED_CHANNELS_RGBA: return EtcpakType::ETCPAK_TYPE_DXT5; default: