mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-02 14:32:07 +01:00
Fix byte alignment
This commit is contained in:
parent
8b21447018
commit
e269d1605d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue