mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 13:53:14 +01:00
GL: Cleanup FBO on destroy.
This commit is contained in:
@@ -4423,7 +4423,6 @@ namespace bgfx { namespace gl
|
||||
if (0 != m_num)
|
||||
{
|
||||
GL_CHECK(glDeleteFramebuffers(0 == m_fbo[1] ? 1 : 2, m_fbo) );
|
||||
memset(m_fbo, 0, sizeof(m_fbo) );
|
||||
m_num = 0;
|
||||
}
|
||||
|
||||
@@ -4433,6 +4432,7 @@ namespace bgfx { namespace gl
|
||||
m_swapChain = NULL;
|
||||
}
|
||||
|
||||
memset(m_fbo, 0, sizeof(m_fbo) );
|
||||
uint16_t denseIdx = m_denseIdx;
|
||||
m_denseIdx = UINT16_MAX;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user