From 217771ce833d54eecfff438c3a9cd318889bac0f Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sat, 8 Feb 2020 15:11:53 -0500 Subject: [PATCH] Fix the total mip counter to adjust sizes based on format limits --- .../Editors/TextureImport/3DS/CTR_3DSImporterSettings.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Switch_Toolbox_Library/Forms/Editors/TextureImport/3DS/CTR_3DSImporterSettings.cs b/Switch_Toolbox_Library/Forms/Editors/TextureImport/3DS/CTR_3DSImporterSettings.cs index 2314a4d1..066813d1 100644 --- a/Switch_Toolbox_Library/Forms/Editors/TextureImport/3DS/CTR_3DSImporterSettings.cs +++ b/Switch_Toolbox_Library/Forms/Editors/TextureImport/3DS/CTR_3DSImporterSettings.cs @@ -184,7 +184,12 @@ namespace Toolbox.Library.Forms width = Pow2RoundDown(width); height = Pow2RoundDown(height); - if (width <= 0 || height <= 0) + if (Format == CTR_3DS.PICASurfaceFormat.ETC1 || Format == CTR_3DS.PICASurfaceFormat.ETC1A4) + { + if (width < 16 || height < 16) + break; + } + else if (width < 8 || height < 8) break; if (num > 0)