Close list earlier so that error bail-out conditions won't leave it open

This commit is contained in:
baldurk
2017-03-20 19:14:42 +01:00
parent a29dfb814b
commit 1b992db45c
+3 -3
View File
@@ -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);