mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 20:01:12 +00:00
Fix structured export crash on D3D11
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user