D3D11: Disabled ID3D11Device3 when RenderDoc is present.

This commit is contained in:
Branimir Karadžić 2016-04-05 15:30:03 -07:00
parent b1648aea1a
commit d94ffa2882
1 changed files with 7 additions and 1 deletions

View File

@ -1014,6 +1014,13 @@ namespace bgfx { namespace d3d11
}
}
if (NULL != m_renderdocdll)
{
// RenderDoc doesn't support ID3D11Device3 yet:
// https://github.com/baldurk/renderdoc/issues/235
m_deviceInterfaceVersion = bx::uint32_min(m_deviceInterfaceVersion, 1);
}
IDXGIDevice* device = NULL;
IDXGIAdapter* adapter = NULL;
hr = E_FAIL;
@ -1222,7 +1229,6 @@ BX_PRAGMA_DIAGNOSTIC_POP();
}
{
UniformHandle handle = BGFX_INVALID_HANDLE;
for (uint32_t ii = 0; ii < PredefinedUniform::Count; ++ii)
{