mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
dispose temporary metal buffer
This commit is contained in:
parent
3be47ae4a9
commit
58b42a1143
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
);
|
||||
|
||||
// TODO: Dispose the buffer
|
||||
return new PinnedSpan<byte>(mtlBuffer.Contents.ToPointer(), (int)length);
|
||||
return new PinnedSpan<byte>(mtlBuffer.Contents.ToPointer(), (int)length, () => mtlBuffer.Dispose());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue