mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-02-01 04:25:49 +01:00
Fix byte alignment
This commit is contained in:
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user