mirror of
https://github.com/AssetRipper/AssetRipper.TextureDecoder.git
synced 2026-11-12 18:07:28 -10:00
Fix DecodeASTC method not using size of TOutputColor
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user