D3D12: Fixed buffer state.

This commit is contained in:
Branimir Karadžić
2018-02-07 18:09:53 -08:00
parent 372a26882b
commit b2240e9197

View File

@@ -1529,7 +1529,7 @@ namespace bgfx { namespace d3d12
m_cmd.shutdown();
DX_RELEASE(m_device, 0);
DX_RELEASE(m_device, 0);
DX_RELEASE(m_adapter, 0);
DX_RELEASE(m_factory, 0);
@@ -4308,6 +4308,7 @@ data.NumQualityLevels = 0;
{
s_renderD3D12->m_cmd.release(m_ptr);
m_dynamic = false;
m_state = D3D12_RESOURCE_STATE_COMMON;
}
}