From acce02bdf5a9a3fa02ec0f34de9e384e7418ff66 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sat, 25 May 2024 09:56:42 +0200 Subject: [PATCH] allow null depth stencil render targets --- src/Ryujinx.Graphics.Metal/EncoderStateManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs index d725fd8de..525ab0b2d 100644 --- a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs +++ b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs @@ -298,6 +298,9 @@ namespace Ryujinx.Graphics.Metal if (depthStencil is Texture depthTexture) { _currentState.DepthStencil = depthTexture; + } else if (depthStencil == null) + { + _currentState.DepthStencil = null; } // Requires recreating pipeline