summaryrefslogtreecommitdiff
path: root/modules/etc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-25 21:38:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2020-07-27 13:11:44 +0200
commitc71e189efd63b3875904d8fe2b8a030e68919aad (patch)
treed7b40e9a8fa6de507459d877dc2dd825894fca07 /modules/etc
parent6f292f906e749f30ceb7f922df5639add61a5f88 (diff)
Style: Fix code format scripts compat with non-GNU Unices
It's too hard to get compatibility between GNU and BSD sed, so let's just use perl oneliners. And improve it to also remove trailing tabs, not just spaces.
Diffstat (limited to 'modules/etc')
-rw-r--r--modules/etc/image_etc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/etc/image_etc.cpp b/modules/etc/image_etc.cpp
index 9b6d8a2d35..d1ba3dc355 100644
--- a/modules/etc/image_etc.cpp
+++ b/modules/etc/image_etc.cpp
@@ -106,7 +106,7 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f
// If VRAM compression is using ETC, but image has alpha, convert to RGBA4444 or LA8
// This saves space while maintaining the alpha channel
if (detected_channels == Image::USED_CHANNELS_RGBA) {
-
+
if (p_img->has_mipmaps()) {
// Image doesn't support mipmaps with RGBA4444 textures
p_img->clear_mipmaps();