diff options
author | clayjohn <claynjohn@gmail.com> | 2023-04-27 10:54:25 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-04-27 10:54:25 -0700 |
commit | f84c6df8d1aec35fe53521f241b26fc5312d26e3 (patch) | |
tree | 99f76dc2ddd5d1d03ca1c18a1dab47675a023cd3 /modules/etcpak | |
parent | 65d8659eb6cdbb171ee21ad86d96e3bc364348dc (diff) | |
download | redot-engine-f84c6df8d1aec35fe53521f241b26fc5312d26e3.tar.gz |
Use DXT1 when compressing PNGs with RGB format
This results in much smaller file sizes with the same quality
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 16a59d3880..14cce2686c 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: |