Skip to content

Commit 00c02fd

Browse files
committed
Fix tex file migration for small textures.
1 parent 140d150 commit 00c02fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Penumbra/Import/Textures/TexFileParser.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public static unsafe void FixMipOffsets(long size, ref TexFile.TexHeader header,
9595

9696
if (width == minSize && height == minSize)
9797
{
98-
newSize = totalSize;
98+
++i;
99+
newSize = totalSize + requiredSize;
99100
if (header.MipCount != i)
100101
{
101102
Penumbra.Log.Debug($"-- Reduced number of Mip Maps from {header.MipCount} to {i} due to minimum size constraints.");

0 commit comments

Comments
 (0)