Merge pull request #76516 from clayjohn/DXT1

Use DXT1 when compressing PNGs with RGB format
This commit is contained in:
Rémi Verschelde 2023-04-27 23:57:25 +02:00
commit 578ca94ef6
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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: