NVAPI: Shutdown after device is released.

This commit is contained in:
Branimir Karadžić 2018-03-20 17:52:49 -07:00
parent df83b98fd6
commit f10d4c1646

View File

@ -1553,8 +1553,6 @@ namespace bgfx { namespace d3d11
preReset();
m_ovr.shutdown();
m_nvapi.shutdown();
if (NULL != m_ags)
{
agsDeInit(m_ags);
@ -1598,6 +1596,7 @@ namespace bgfx { namespace d3d11
DX_RELEASE(m_deviceCtx, 0);
DX_RELEASE(m_device, 0);
m_nvapi.shutdown();
m_dxgi.shutdown();
unloadRenderDoc(m_renderdocdll);