Skip to content

Commit b6b6e57

Browse files
committed
Multilayer DDS reading.
1 parent 5ee12a4 commit b6b6e57

File tree

1 file changed

+2
-1
lines changed
  • xivModdingFramework/Textures/DataContainers

1 file changed

+2
-1
lines changed

xivModdingFramework/Textures/DataContainers/XivTex.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public static XivTex FromUncompressedTex(BinaryReader br, int dataSize, long off
125125
tex.Height = header.Height;
126126

127127

128-
tex.Layers = header.Depth;
128+
// I HAVE NO IDEA WHAT I'M DOING WITH MULTILAYER DDS
129+
tex.Layers = header.ArraySize * header.Depth;
129130
tex.MipMapCount = header.MipCount;
130131

131132
// We can technically calculate this size based on the texture format and size information.

0 commit comments

Comments
 (0)