Fix byte alignment

This commit is contained in:
Isaac Marovitz 2023-07-28 15:09:40 -04:00
parent b943370602
commit 14981b477d
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 1 additions and 1 deletions

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)