From f470430c2fb0c0126034ce33005bb9c02142505e Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sat, 25 May 2024 14:48:07 +0200 Subject: [PATCH] dispose temporary metal buffer --- src/Ryujinx.Graphics.Metal/Texture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/Texture.cs b/src/Ryujinx.Graphics.Metal/Texture.cs index 89b965ba8..f16029809 100644 --- a/src/Ryujinx.Graphics.Metal/Texture.cs +++ b/src/Ryujinx.Graphics.Metal/Texture.cs @@ -223,7 +223,7 @@ namespace Ryujinx.Graphics.Metal ); // TODO: Dispose the buffer - return new PinnedSpan(mtlBuffer.Contents.ToPointer(), (int)length); + return new PinnedSpan(mtlBuffer.Contents.ToPointer(), (int)length, () => mtlBuffer.Dispose()); } }