diff options
Diffstat (limited to 'Ryujinx.Graphics.Texture')
| -rw-r--r-- | Ryujinx.Graphics.Texture/LayoutConverter.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Texture/LayoutConverter.cs b/Ryujinx.Graphics.Texture/LayoutConverter.cs index 970d08cb..1039ea26 100644 --- a/Ryujinx.Graphics.Texture/LayoutConverter.cs +++ b/Ryujinx.Graphics.Texture/LayoutConverter.cs @@ -248,6 +248,7 @@ namespace Ryujinx.Graphics.Texture int height, int blockWidth, int blockHeight, + int lineSize, int stride, int bytesPerPixel, ReadOnlySpan<byte> data) @@ -256,7 +257,7 @@ namespace Ryujinx.Graphics.Texture int h = BitUtils.DivRoundUp(height, blockHeight); int outStride = BitUtils.AlignUp(w * bytesPerPixel, HostStrideAlignment); - int lineSize = Math.Min(stride, outStride); + lineSize = Math.Min(lineSize, outStride); Span<byte> output = new byte[h * outStride]; |
