From e6c2e5873cc784bf2d2aa33ae0079204024a926d Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 18 May 2024 20:47:45 -0400 Subject: [PATCH] Make Texture Volatile on dispose --- src/Ryujinx.Graphics.Metal/Texture.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/Texture.cs b/src/Ryujinx.Graphics.Metal/Texture.cs index 5ce1dd2ed..63e51305e 100644 --- a/src/Ryujinx.Graphics.Metal/Texture.cs +++ b/src/Ryujinx.Graphics.Metal/Texture.cs @@ -327,12 +327,12 @@ namespace Ryujinx.Graphics.Metal public void Release() { - Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!"); + Dispose(); } public void Dispose() { - Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!"); + MTLTexture.SetPurgeableState(MTLPurgeableState.Volatile); } } }