mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
D3D11: Release frame buffer swap chain on shutdown.
This commit is contained in:
parent
9f6675206d
commit
1b6ef6dba3
2 changed files with 6 additions and 0 deletions
|
@ -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 a new issue