mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 20:43:09 +00:00
Fix the total mip counter to adjust sizes based on format limits
This commit is contained in:
parent
1e62b23013
commit
217771ce83
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue