GL: Properly reset FBO after emulated blit (#2782)

Reset the previously bound FBO after rendering an emulated blit instead
of binding the default framebuffer.

Co-authored-by: Sami Kyöstilä <sami.kyostila@unrealvoodoo.org>
This commit is contained in:
Sami Kyöstilä
2022-04-23 15:25:46 +01:00
committed by GitHub
parent 33dd76eab5
commit 09d8c34e34

View File

@@ -7182,7 +7182,7 @@ namespace bgfx { namespace gl
) );
GL_CHECK(glDeleteFramebuffers(1, &fbo) );
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, 0) );
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_currentFbo) );
}
}
}