From 8b7ac4e87f1e220aaacf11899106c097caa2360b Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 25 May 2024 12:30:06 -0400 Subject: [PATCH] Suppress GC Finalize on StateCache --- src/Ryujinx.Graphics.Metal/StateCache.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/StateCache.cs b/src/Ryujinx.Graphics.Metal/StateCache.cs index 4b2c6c5a4..f333814e6 100644 --- a/src/Ryujinx.Graphics.Metal/StateCache.cs +++ b/src/Ryujinx.Graphics.Metal/StateCache.cs @@ -19,6 +19,8 @@ namespace Ryujinx.Graphics.Metal { value.Dispose(); } + + GC.SuppressFinalize(this); } public T GetOrCreate(TDescriptor descriptor)