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)