summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-27 13:27:56 +0200
committerGitHub <noreply@github.com>2020-07-27 13:27:56 +0200
commitbd9fc75768512c1149b2b24f579d144608ffd9b3 (patch)
tree207fe18217cff75a257e274eaca88bf00f005049 /modules
parent08d3d06ed7bdfbc24ce8a2d5ec79567000f8849f (diff)
parentc71e189efd63b3875904d8fe2b8a030e68919aad (diff)
downloadredot-engine-bd9fc75768512c1149b2b24f579d144608ffd9b3.tar.gz
Merge pull request #40706 from akien-mga/style-fix-file_format-macos
Fix code format scripts compat with non-GNU Unices
Diffstat (limited to 'modules')
-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();