mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Use DXT1 when compressing PNGs with RGB format
This results in much smaller file sizes with the same quality
(cherry picked from commit f84c6df8d1
)
This commit is contained in:
parent
2a0597d0cb
commit
9d257f10c0
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user