Image: Fix decompressing ETC2

Thanks to @Rriik for finding the bug and its cause.

Fixes #25595.
This commit is contained in:
Rémi Verschelde 2019-02-08 17:26:23 +01:00
parent 5e837b3f13
commit 1772d6fa23

View file

@ -1789,7 +1789,7 @@ Error Image::decompress() {
_image_decompress_pvrtc(this);
else if (format == FORMAT_ETC && _image_decompress_etc1)
_image_decompress_etc1(this);
else if (format >= FORMAT_ETC2_R11 && format <= FORMAT_ETC2_RGB8A1 && _image_decompress_etc1)
else if (format >= FORMAT_ETC2_R11 && format <= FORMAT_ETC2_RGB8A1 && _image_decompress_etc2)
_image_decompress_etc2(this);
else
return ERR_UNAVAILABLE;