Skip to content

Commit

Permalink
[Imaging] - Bug in dds codec where image cube would incorrectly load …
Browse files Browse the repository at this point in the history
…as a 2D image.
  • Loading branch information
Tape-Worm committed May 3, 2022
1 parent 5375f2c commit dd6d5cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Gorgon/Gorgon.Graphics.Imaging/Codecs/GorgonCodecDds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ private GorgonImageInfo ReadHeader(GorgonBinaryReader reader, long size, DdsLega
if ((dx10settings.MiscFlags & DdsHeaderMiscFlags.TextureCube) == DdsHeaderMiscFlags.TextureCube)
{
arrayCount *= 6;
imageType = ImageType.ImageCube;
}
}
else
Expand Down

0 comments on commit dd6d5cc

Please sign in to comment.