mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Coverity: Check return value of Create*State1 properly with D3D11.1
This commit is contained in:
@@ -78,7 +78,7 @@ bool WrappedID3D11Device::Serialise_CreateBlendState1(const D3D11_BLEND_DESC1 *p
|
||||
HRESULT hr = E_NOINTERFACE;
|
||||
|
||||
if(m_pDevice1)
|
||||
m_pDevice1->CreateBlendState1(&Descriptor, &ret);
|
||||
hr = m_pDevice1->CreateBlendState1(&Descriptor, &ret);
|
||||
else
|
||||
RDCERR("Replaying a D3D11.1 device without D3D11.1 available");
|
||||
|
||||
@@ -158,7 +158,7 @@ bool WrappedID3D11Device::Serialise_CreateRasterizerState1(
|
||||
HRESULT hr = E_NOINTERFACE;
|
||||
|
||||
if(m_pDevice1)
|
||||
m_pDevice1->CreateRasterizerState1(&Descriptor, &ret);
|
||||
hr = m_pDevice1->CreateRasterizerState1(&Descriptor, &ret);
|
||||
else
|
||||
RDCERR("Replaying a D3D11.1 device without D3D11.1 available");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user