Fix structured export crash on D3D11

This commit is contained in:
baldurk
2020-05-28 15:54:35 +01:00
parent d5c83c76a0
commit 671ceacb59
+7 -2
View File
@@ -90,14 +90,19 @@ WrappedID3D11DeviceContext::WrappedID3D11DeviceContext(WrappedID3D11Device *real
NullCBCounts[i] = 4096;
}
m_Type = m_pRealContext->GetType();
D3D11_FEATURE_DATA_D3D11_OPTIONS features;
RDCEraseEl(features);
HRESULT hr = S_OK;
if(m_pRealContext)
{
hr = m_pDevice->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS, &features, sizeof(features));
m_Type = m_pRealContext->GetType();
}
else
{
m_Type = D3D11_DEVICE_CONTEXT_IMMEDIATE;
}
m_SetCBuffer1 = false;
if(SUCCEEDED(hr))