1
0
mirror of synced 2024-12-01 02:27:22 +01:00

Fix the total mip counter to adjust sizes based on format limits

This commit is contained in:
KillzXGaming 2020-02-08 15:11:53 -05:00
parent 1e62b23013
commit 217771ce83

View File

@ -184,7 +184,12 @@ namespace Toolbox.Library.Forms
width = Pow2RoundDown(width); width = Pow2RoundDown(width);
height = Pow2RoundDown(height); 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; break;
if (num > 0) if (num > 0)