diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-09-04 18:45:00 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-09-04 18:45:41 -0300 |
commit | 89e090edefe478e1d5f6ffdd229c37a3f2264692 (patch) | |
tree | e22db2d0ef57f1eaed0ec4a082af4002731b9336 /modules/etc | |
parent | 84c33cfe6b58be18ba4913ab0da91ca84ac3993e (diff) |
Fix ETC2 import for luminance/lumalpha textures, fixes #10421
Diffstat (limited to 'modules/etc')
-rw-r--r-- | modules/etc/image_etc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/etc/image_etc.cpp b/modules/etc/image_etc.cpp index e86fd06d81..dc7d23bbd7 100644 --- a/modules/etc/image_etc.cpp +++ b/modules/etc/image_etc.cpp @@ -37,7 +37,6 @@ static Image::Format _get_etc2_mode(Image::DetectChannels format) { switch (format) { - case Image::DETECTED_L: case Image::DETECTED_R: return Image::FORMAT_ETC2_R11; @@ -47,7 +46,7 @@ static Image::Format _get_etc2_mode(Image::DetectChannels format) { case Image::DETECTED_RGB: return Image::FORMAT_ETC2_RGB8; - case Image::DETECTED_RGBA: + default: return Image::FORMAT_ETC2_RGBA8; // TODO: would be nice if we could use FORMAT_ETC2_RGB8A1 for FORMAT_RGBA5551 |