From 09d8c34e342cb9d8c47408b112e4edd03bab5e33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20Ky=C3=B6stil=C3=A4?= Date: Sat, 23 Apr 2022 15:25:46 +0100 Subject: [PATCH] GL: Properly reset FBO after emulated blit (#2782) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reset the previously bound FBO after rendering an emulated blit instead of binding the default framebuffer. Co-authored-by: Sami Kyöstilä --- src/renderer_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index e041c4ec4..c3dcfefd2 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -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) ); } } }