diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-08 17:26:23 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-08 17:26:47 +0100 |
commit | 1772d6fa234dd6814a12df6a89c9bb8ddc011f1b (patch) | |
tree | 3a165ae597d9dba848035f2bd3519aa0ce1a0785 | |
parent | 5e837b3f13ab1e3b31bb8d705e87820fa4eff21e (diff) |
Image: Fix decompressing ETC2
Thanks to @Rriik for finding the bug and its cause.
Fixes #25595.
-rw-r--r-- | core/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image.cpp b/core/image.cpp index 91c3d05a29..3d48db872c 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; |