qt/bootmanager: Remove unnecessary glBindFramebuffer

Presentation context always has GL_DRAW_FRAMEBUFFER_BINDING as zero.
There is no need to bind the default framebuffer constantly.

According to Nsight this was using ~0.7ms per frame and it broke
renderdoc captures.
master
ReinUsesLisp 2020-04-07 20:51:56 +07:00
parent 27f122c48c
commit c6ea0d010b
1 changed files with 0 additions and 1 deletions

@ -224,7 +224,6 @@ public:
}
context->MakeCurrent();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
if (Core::System::GetInstance().Renderer().TryPresent(100)) {
context->SwapBuffers();
glFinish();