1
0
mirror of synced 2024-12-01 10:37:25 +01:00

Set DDS depth count for generic textures to 1.

This commit is contained in:
KillzXGaming 2019-03-30 16:43:07 -04:00
parent ea00287462
commit 7238de5d37
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -586,10 +586,14 @@ namespace Switch_Toolbox.Library
var data = GetImageData(SurfaceLevel, MipLevel);
var surfaces = new List<Surface>();
if (Depth == 0)
Depth = 1;
DDS dds = new DDS();
dds.header = new DDS.Header();
dds.header.width = Width;
dds.header.height = Height;
dds.header.depth = Depth;
dds.header.mipmapCount = (uint)MipCount;
dds.header.pitchOrLinearSize = (uint)data.Length;
dds.SetFlags((DDS.DXGI_FORMAT)Format);