mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-01 20:31:01 +00:00
D3D12 Depth overlay always clear stencil to zero
This commit is contained in:
@@ -2459,6 +2459,16 @@ ResourceId D3D12Replay::RenderOverlay(ResourceId texid, FloatVector clearCol, De
|
||||
rs.pipe = GetResID(greenPSO);
|
||||
}
|
||||
|
||||
if(useDepthWriteStencilPass)
|
||||
{
|
||||
list = m_pDevice->GetNewList();
|
||||
if(!list)
|
||||
return ResourceId();
|
||||
list->ClearDepthStencilView(dsv, D3D12_CLEAR_FLAG_STENCIL, 0.0f, 0, 0, NULL);
|
||||
list->Close();
|
||||
list = NULL;
|
||||
}
|
||||
|
||||
m_pDevice->ReplayLog(0, eventId, eReplay_OnlyDraw);
|
||||
|
||||
rs = prev;
|
||||
|
||||
Reference in New Issue
Block a user