mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 08:17:59 +01:00
Fix texture writing.
This commit is contained in:
parent
1be75444cd
commit
380dd0cffb
4 changed files with 125 additions and 5 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue