D3D12 Depth overlay fix for unset stencil mask

This commit is contained in:
Jake Turner
2023-12-04 10:21:57 +00:00
committed by Baldur Karlsson
parent 693fa9e8ea
commit 3eccdc736e
+2
View File
@@ -2323,6 +2323,8 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, FloatVector clearCol, De
psoDesc.DepthStencilState.FrontFace.StencilFailOp = D3D12_STENCIL_OP_KEEP;
psoDesc.DepthStencilState.FrontFace.StencilDepthFailOp = D3D12_STENCIL_OP_KEEP;
psoDesc.DepthStencilState.FrontFace.StencilPassOp = D3D12_STENCIL_OP_REPLACE;
psoDesc.DepthStencilState.FrontFace.StencilReadMask = 0xff;
psoDesc.DepthStencilState.FrontFace.StencilWriteMask = 0xff;
psoDesc.DepthStencilState.BackFace = psoDesc.DepthStencilState.FrontFace;
}
else