Fix texture writing.

This commit is contained in:
Ottermandias 2024-07-11 01:40:45 +02:00
parent 1be75444cd
commit 380dd0cffb
4 changed files with 125 additions and 5 deletions

View file

@ -79,8 +79,8 @@ public static class TexFileParser
w.Write(header.Width);
w.Write(header.Height);
w.Write(header.Depth);
w.Write(header.MipCount);
w.Write(header.MipUnknownFlag); // TODO Lumina Update
w.Write((byte)(header.MipCount | (header.MipUnknownFlag ? 0x80 : 0)));
w.Write(header.ArraySize);
unsafe
{
w.Write(header.LodOffset[0]);