mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-02-21 04:58:04 +01:00
dispose temporary metal buffer
This commit is contained in:
parent
051bd144e1
commit
f470430c2f
@ -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…
x
Reference in New Issue
Block a user