Skip to content

Commit d2de105

Browse files
committed
Update v3.0.7.6
2 parents 6e7239e + 5e1d9ae commit d2de105

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

xivModdingFramework/Mods/EndwalkerUpgrade.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ private static async Task<Dictionary<string, UpgradeInfo>> UpdateEndwalkerColors
850850
newData[offset + 0] = mtrl.ColorSetData[pixel + 0];
851851
newData[offset + 1] = mtrl.ColorSetData[pixel + 1];
852852
newData[offset + 2] = mtrl.ColorSetData[pixel + 2];
853+
//newData[offset + 3] = mtrl.ColorSetData[pixel + 3];
853854

854855
// Skip next 3 pixels
855856
offset += 4;

xivModdingFramework/Textures/FileTypes/DDS.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ private static byte[] CreateDDSHeader(XivTexFormat format, int width, int height
160160
uint dwPitchOrLinearSize, pfFlags;
161161
var header = new List<byte>();
162162

163+
if(layers <= 0)
164+
{
165+
layers = 1;
166+
}
167+
163168
// DDS header magic number
164169
const uint dwMagic = 0x20534444;
165170
header.AddRange(BitConverter.GetBytes(dwMagic));

0 commit comments

Comments
 (0)