diff options
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Image')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Image/Texture.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 8da1041b..c34ff1d3 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -250,17 +250,15 @@ namespace Ryujinx.Graphics.Gpu.Image if (!_context.Capabilities.SupportsAstcCompression && _info.FormatInfo.Format.IsAstc()) { - int blockWidth = _info.FormatInfo.BlockWidth; - int blockHeight = _info.FormatInfo.BlockHeight; - data = AstcDecoder.DecodeToRgba8( data, - blockWidth, - blockHeight, + _info.FormatInfo.BlockWidth, + _info.FormatInfo.BlockHeight, 1, _info.Width, _info.Height, - _depth); + _depth, + _info.Levels); } HostTexture.SetData(data); |
