mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
GL: Cleanup FBO on destroy.
This commit is contained in:
parent
74fb466e92
commit
f3a17da8a8
1 changed files with 1 additions and 1 deletions
|
@ -4423,7 +4423,6 @@ namespace bgfx { namespace gl
|
||||||
if (0 != m_num)
|
if (0 != m_num)
|
||||||
{
|
{
|
||||||
GL_CHECK(glDeleteFramebuffers(0 == m_fbo[1] ? 1 : 2, m_fbo) );
|
GL_CHECK(glDeleteFramebuffers(0 == m_fbo[1] ? 1 : 2, m_fbo) );
|
||||||
memset(m_fbo, 0, sizeof(m_fbo) );
|
|
||||||
m_num = 0;
|
m_num = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4433,6 +4432,7 @@ namespace bgfx { namespace gl
|
||||||
m_swapChain = NULL;
|
m_swapChain = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(m_fbo, 0, sizeof(m_fbo) );
|
||||||
uint16_t denseIdx = m_denseIdx;
|
uint16_t denseIdx = m_denseIdx;
|
||||||
m_denseIdx = UINT16_MAX;
|
m_denseIdx = UINT16_MAX;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue