Fix DecodeASTC method not using size of TOutputColor

This commit is contained in:
ds5678 committed 2026-08-10 16:50:31 -07:00
1 parent 03713d8d57
commit ec91662b4a
1 file changed
+1 -1
@@ -18,7 +18,7 @@ namespace AssetRipper.TextureDecoder.Astc
where TOutputChannelValue : unmanaged
where TOutputColor : unmanaged, IColor<TOutputChannelValue>
{
output = new byte[width * height * 4];
output = new byte[width * height * Unsafe.SizeOf<TOutputColor>()];
return DecodeASTC<TOutputColor, TOutputChannelValue>(input, width, height, blockWidth, blockHeight, output);
}