mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 08:12:26 -07:00
dispose temporary metal buffer
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user