summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-04-07 20:51:56 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-04-07 20:51:56 -0300
commitc6ea0d010b05d6f8bc02eb2a0515887a009df603 (patch)
tree6abe524a85e2404afaa487fbfae45ebfc7dfe462 /src
parent27f122c48c2f12d53e13349b61e4c52fc9cb8b9b (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/bootmanager.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index eaded2640..7b211bd32 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -224,7 +224,6 @@ public:
}
context->MakeCurrent();
- glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
if (Core::System::GetInstance().Renderer().TryPresent(100)) {
context->SwapBuffers();
glFinish();