diff --git a/AssetRipper.TextureDecoder/Astc/AstcDecoder.cs b/AssetRipper.TextureDecoder/Astc/AstcDecoder.cs index 866ca5b..c9f04c1 100644 --- a/AssetRipper.TextureDecoder/Astc/AstcDecoder.cs +++ b/AssetRipper.TextureDecoder/Astc/AstcDecoder.cs @@ -18,7 +18,7 @@ namespace AssetRipper.TextureDecoder.Astc where TOutputChannelValue : unmanaged where TOutputColor : unmanaged, IColor { - output = new byte[width * height * 4]; + output = new byte[width * height * Unsafe.SizeOf()]; return DecodeASTC(input, width, height, blockWidth, blockHeight, output); }