Skip to content

Commit

Permalink
D3D12 Depth overlay fix for unset stencil mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 authored and baldurk committed Dec 4, 2023
1 parent 693fa9e commit 3eccdc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renderdoc/driver/d3d12/d3d12_overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3eccdc7

Please sign in to comment.