mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-28 00:24:23 +01:00
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.
This commit is contained in:
parent
27f122c48c
commit
c6ea0d010b
@ -224,7 +224,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
context->MakeCurrent();
|
context->MakeCurrent();
|
||||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
|
|
||||||
if (Core::System::GetInstance().Renderer().TryPresent(100)) {
|
if (Core::System::GetInstance().Renderer().TryPresent(100)) {
|
||||||
context->SwapBuffers();
|
context->SwapBuffers();
|
||||||
glFinish();
|
glFinish();
|
||||||
|
Loading…
Reference in New Issue
Block a user