mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Close list earlier so that error bail-out conditions won't leave it open
This commit is contained in:
@@ -7942,6 +7942,9 @@ ResourceId D3D12DebugManager::RenderOverlay(ResourceId texid, FormatComponentTyp
|
||||
psoDesc.PS.pShaderBytecode = green->GetBufferPointer();
|
||||
psoDesc.PS.BytecodeLength = green->GetBufferSize();
|
||||
|
||||
list->Close();
|
||||
list = NULL;
|
||||
|
||||
ID3D12PipelineState *greenPSO = NULL;
|
||||
HRESULT hr = m_WrappedDevice->CreateGraphicsPipelineState(
|
||||
&psoDesc, __uuidof(ID3D12PipelineState), (void **)&greenPSO);
|
||||
@@ -7973,9 +7976,6 @@ ResourceId D3D12DebugManager::RenderOverlay(ResourceId texid, FormatComponentTyp
|
||||
return m_OverlayResourceId;
|
||||
}
|
||||
|
||||
list->Close();
|
||||
list = NULL;
|
||||
|
||||
D3D12RenderState prev = rs;
|
||||
|
||||
rs.pipe = GetResID(redPSO);
|
||||
|
||||
Reference in New Issue
Block a user