mirror of
https://github.com/godotengine/godot.git
synced 2025-10-15 02:49:24 +00:00
Image: Fix decompressing ETC2
Thanks to @Rriik for finding the bug and its cause.
Fixes #25595.
(cherry picked from commit 1772d6fa23
)
This commit is contained in:
@@ -1505,7 +1505,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;
|
||||
|
Reference in New Issue
Block a user