0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 05:45:47 +00:00

dispose temporary metal buffer

This commit is contained in:
Samuliak 2024-05-25 14:48:07 +02:00 committed by Isaac Marovitz
parent 051bd144e1
commit f470430c2f

View file

@ -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());
}
}