diff options
author | clayjohn <claynjohn@gmail.com> | 2023-04-27 10:54:25 -0700 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-05-12 12:07:00 +0200 |
commit | 9d257f10c0b6d180c88dc43aa76db2fe83e2ca29 (patch) | |
tree | b006a0d86cb86b6a99fc7bdff16e232ceeb948d5 /modules | |
parent | 2a0597d0cbe1f3e98803a431d28a58d0590d74ae (diff) |
Use DXT1 when compressing PNGs with RGB format
This results in much smaller file sizes with the same quality
(cherry picked from commit f84c6df8d1aec35fe53521f241b26fc5312d26e3)
Diffstat (limited to 'modules')
-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: |