From 21548bada8e0806adfc3fc36fa748f7355dfecbb Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 31 Jul 2016 12:39:05 -1000 Subject: [PATCH] Use GEQUAL compare for Metal depth compare --- lib/graphicsdev/Metal.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphicsdev/Metal.mm b/lib/graphicsdev/Metal.mm index e93aa3d..bb8430f 100644 --- a/lib/graphicsdev/Metal.mm +++ b/lib/graphicsdev/Metal.mm @@ -503,7 +503,7 @@ class MetalShaderPipeline : public IShaderPipeline MTLDepthStencilDescriptor* dsDesc = [MTLDepthStencilDescriptor new]; if (depthTest) - dsDesc.depthCompareFunction = MTLCompareFunctionGreater; + dsDesc.depthCompareFunction = MTLCompareFunctionGreaterEqual; dsDesc.depthWriteEnabled = depthWrite; m_dsState = [ctx->m_dev newDepthStencilStateWithDescriptor:dsDesc]; }