Skip to content

Commit c9e72e3

Browse files
committed
Don't skip depth-only pass events due to invalid RT index
1 parent 3d23916 commit c9e72e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

renderdoc/driver/d3d12/d3d12_pixelhistory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,8 @@ struct D3D12PixelHistoryPerFragmentCallback : D3D12PixelHistoryCallback
21242124
D3D12_EXPANDED_PIPELINE_STATE_STREAM_DESC origPipeDesc;
21252125
origPSO->Fill(origPipeDesc);
21262126

2127-
if(renderTargetIndex >= origPipeDesc.RTVFormats.NumRenderTargets)
2127+
if(!IsDepthFormat(m_CallbackInfo.targetDesc) &&
2128+
renderTargetIndex >= origPipeDesc.RTVFormats.NumRenderTargets)
21282129
return;
21292130

21302131
PerFragmentPipelines pipes = CreatePerFragmentPipelines(state, eid, 0, renderTargetIndex);

0 commit comments

Comments
 (0)