Use GEQUAL compare for Metal depth compare

This commit is contained in:
Jack Andersen 2016-07-31 12:39:05 -10:00
parent 2ec943f0b2
commit 21548bada8
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}