Fix tex file migration for small textures.

This commit is contained in:
Ottermandias 2025-07-14 17:09:07 +02:00
parent 140d150bb4
commit 00c02fd16e

View file

@ -95,7 +95,8 @@ public static class TexFileParser
if (width == minSize && height == minSize)
{
newSize = totalSize;
++i;
newSize = totalSize + requiredSize;
if (header.MipCount != i)
{
Penumbra.Log.Debug($"-- Reduced number of Mip Maps from {header.MipCount} to {i} due to minimum size constraints.");