Merge pull request #44680 from madmiraal/fix-cvtt-options

Ensure flags are applied to CVTT options
This commit is contained in:
Rémi Verschelde 2020-12-25 14:57:48 +01:00 committed by GitHub
commit af2232521c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,6 +171,7 @@ void image_compress_cvtt(Image *p_image, float p_lossy_quality, Image::UsedChann
if (p_channels == Image::USED_CHANNELS_RG) { //guessing this is a normalmap
flags |= cvtt::Flags::Uniform;
}
options.flags = flags;
Image::Format target_format = Image::FORMAT_BPTC_RGBA;