From 1772d6fa234dd6814a12df6a89c9bb8ddc011f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 8 Feb 2019 17:26:23 +0100 Subject: [PATCH] Image: Fix decompressing ETC2 Thanks to @Rriik for finding the bug and its cause. Fixes #25595. --- core/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/image.cpp b/core/image.cpp index 91c3d05a29e..3d48db872c5 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -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;