Skip to content

Commit

Permalink
fix DecodeCubemap formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro413 committed May 20, 2024
1 parent 4d50e7d commit d1f76bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TagTool/Bitmaps/Utils/BitmapDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ private static byte[] EncodeY8(byte[] data, int width, int height)

public static List<byte[]> DecodeCubemap(byte[] bitmRaw, BitmapFormat format, int virtualWidth, int virtualHeight)
{
int faceSize = virtualWidth * virtualHeight; // HACK DXT5 ONLY
int faceSize = (virtualWidth * virtualHeight * BitmapFormatUtils.GetBitsPerPixel(format)) / 8;

List<byte[]> result = new List<byte[]>();//new byte[rawFaceSize * 6];

Expand Down

0 comments on commit d1f76bb

Please sign in to comment.