Backends: DX10/DX11: Minor tweaks.

This commit is contained in:
omar
2020-05-04 11:32:58 +02:00
parent 1e9abf60d1
commit 099091280f
3 changed files with 33 additions and 36 deletions

View File

@@ -585,14 +585,11 @@ bool ImGui_ImplDX12_CreateDeviceObjects()
desc.BackFace = desc.FrontFace;
}
if (g_pd3dDevice->CreateGraphicsPipelineState(&psoDesc, IID_PPV_ARGS(&g_pPipelineState)) != S_OK)
{
vertexShaderBlob->Release();
pixelShaderBlob->Release();
return false;
}
HRESULT result_pipeline_state = g_pd3dDevice->CreateGraphicsPipelineState(&psoDesc, IID_PPV_ARGS(&g_pPipelineState));
vertexShaderBlob->Release();
pixelShaderBlob->Release();
if (result_pipeline_state != S_OK)
return false;
ImGui_ImplDX12_CreateFontsTexture();