diff --git a/src/Ryujinx.Graphics.Metal/Texture.cs b/src/Ryujinx.Graphics.Metal/Texture.cs index 23a2486222..7dd73ae5b7 100644 --- a/src/Ryujinx.Graphics.Metal/Texture.cs +++ b/src/Ryujinx.Graphics.Metal/Texture.cs @@ -116,7 +116,7 @@ namespace Ryujinx.Graphics.Metal public void SetData(SpanOrArray data, int layer, int level, Rectangle region) { - ulong bytesPerRow = (ulong)(Info.Width * Info.BytesPerPixel); + ulong bytesPerRow = (ulong)Info.GetMipStride(level); ulong bytesPerImage = 0; if (MTLTexture.TextureType == MTLTextureType.Type3D)