D3D11: Release frame buffer swap chain on shutdown.
This commit is contained in:
parent
9f6675206d
commit
1b6ef6dba3
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user