Fix byte alignment

This commit is contained in:
Isaac Marovitz 2023-07-28 15:09:40 -04:00 committed by Isaac Marovitz
parent 8b21447018
commit e269d1605d

View file

@ -116,7 +116,7 @@ namespace Ryujinx.Graphics.Metal
public void SetData(SpanOrArray<byte> data, int layer, int level, Rectangle<int> region)
{
ulong bytesPerRow = (ulong)(Info.Width * Info.BytesPerPixel);
ulong bytesPerRow = (ulong)Info.GetMipStride(level);
ulong bytesPerImage = 0;
if (MTLTexture.TextureType == MTLTextureType.Type3D)