mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 05:32:26 -07:00
Fix byte alignment
This commit is contained in:
committed by
Isaac Marovitz
parent
8b21447018
commit
e269d1605d
@@ -116,7 +116,7 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
|
|
||||||
public void SetData(SpanOrArray<byte> data, int layer, int level, Rectangle<int> region)
|
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;
|
ulong bytesPerImage = 0;
|
||||||
|
|
||||||
if (MTLTexture.TextureType == MTLTextureType.Type3D)
|
if (MTLTexture.TextureType == MTLTextureType.Type3D)
|
||||||
|
Reference in New Issue
Block a user