mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't skip depth-only pass events due to invalid RT index
This commit is contained in:
@@ -2124,7 +2124,8 @@ struct D3D12PixelHistoryPerFragmentCallback : D3D12PixelHistoryCallback
|
||||
D3D12_EXPANDED_PIPELINE_STATE_STREAM_DESC origPipeDesc;
|
||||
origPSO->Fill(origPipeDesc);
|
||||
|
||||
if(renderTargetIndex >= origPipeDesc.RTVFormats.NumRenderTargets)
|
||||
if(!IsDepthFormat(m_CallbackInfo.targetDesc) &&
|
||||
renderTargetIndex >= origPipeDesc.RTVFormats.NumRenderTargets)
|
||||
return;
|
||||
|
||||
PerFragmentPipelines pipes = CreatePerFragmentPipelines(state, eid, 0, renderTargetIndex);
|
||||
|
||||
Reference in New Issue
Block a user