Don't skip depth-only pass events due to invalid RT index

This commit is contained in:
baldurk
2025-11-04 14:39:40 +00:00
parent 3d23916b6a
commit c9e72e3d70
@@ -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);