Fix leaked FBO for depth/stencil only view (#2738)

This commit is contained in:
Christophe Dehais 2022-03-04 18:48:50 +01:00 committed by GitHub
parent ae7aeba72c
commit 6c9248914e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6894,7 +6894,7 @@ namespace bgfx { namespace gl
uint16_t FrameBufferGL::destroy()
{
if (0 != m_num)
if (0 != m_fbo[0])
{
GL_CHECK(glDeleteFramebuffers(0 == m_fbo[1] ? 1 : 2, m_fbo) );
m_num = 0;