diff --git a/renderdoc/driver/d3d12/d3d12_replay.cpp b/renderdoc/driver/d3d12/d3d12_replay.cpp index a2b1823847..89c4fbe163 100644 --- a/renderdoc/driver/d3d12/d3d12_replay.cpp +++ b/renderdoc/driver/d3d12/d3d12_replay.cpp @@ -1585,9 +1585,9 @@ void D3D12Replay::SavePipelineState(uint32_t eventId) { const D3D12Descriptor &desc = rs.rts[i]; + state.outputMerger.renderTargets.push_back(Descriptor()); if(desc.GetResResourceId() != ResourceId()) { - state.outputMerger.renderTargets.push_back(Descriptor()); FillDescriptor(state.outputMerger.renderTargets.back(), &desc); } }