From 1f8ae7e5b1440171367244554fefa7338e8cc15a Mon Sep 17 00:00:00 2001 From: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> Date: Mon, 7 Aug 2023 12:42:41 +0100 Subject: [PATCH] Update src/Ryujinx.Graphics.Metal/Pipeline.cs Co-authored-by: gdkchan --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 8166b8a29..2c1e0d4e3 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -326,7 +326,7 @@ namespace Ryujinx.Graphics.Metal public void SetDepthTest(DepthTestDescriptor depthTest) { var depthStencilState = _renderEncoderState.UpdateDepthState( - depthTest.TestEnable ? MTLCompareFunction.Always : depthTest.Func.Convert(), + depthTest.TestEnable ? depthTest.Func.Convert() : MTLCompareFunction.Always, depthTest.WriteEnable); if (_currentEncoder is MTLRenderCommandEncoder renderCommandEncoder)