D3D11: Release frame buffer swap chain on shutdown.

This commit is contained in:
Branimir Karadžić 2015-10-05 21:03:08 -07:00
parent 9f6675206d
commit 1b6ef6dba3
2 changed files with 6 additions and 0 deletions

View file

@ -1453,6 +1453,11 @@ BX_PRAGMA_DIAGNOSTIC_POP();
invalidateCache();
for (uint32_t ii = 0; ii < BX_COUNTOF(m_frameBuffers); ++ii)
{
m_frameBuffers[ii].destroy();
}
for (uint32_t ii = 0; ii < BX_COUNTOF(m_indexBuffers); ++ii)
{
m_indexBuffers[ii].destroy();

View file

@ -248,6 +248,7 @@ namespace bgfx { namespace d3d11
{
FrameBufferD3D11()
: m_dsv(NULL)
, m_swapChain(NULL)
, m_width(0)
, m_height(0)
, m_denseIdx(UINT16_MAX)