diff options
| author | 2020-04-07 20:51:56 -0300 | |
|---|---|---|
| committer | 2020-04-07 20:51:56 -0300 | |
| commit | c6ea0d010b05d6f8bc02eb2a0515887a009df603 (patch) | |
| tree | 6abe524a85e2404afaa487fbfae45ebfc7dfe462 /src | |
| parent | file_sys: fix LayeredFS error when loading some games made with… (#3602) (diff) | |
| download | yuzu-c6ea0d010b05d6f8bc02eb2a0515887a009df603.tar.gz yuzu-c6ea0d010b05d6f8bc02eb2a0515887a009df603.tar.xz yuzu-c6ea0d010b05d6f8bc02eb2a0515887a009df603.zip | |
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.cpp | 1 |
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: | |||
| 224 | } | 224 | } |
| 225 | 225 | ||
| 226 | context->MakeCurrent(); | 226 | context->MakeCurrent(); |
| 227 | glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); | ||
| 228 | if (Core::System::GetInstance().Renderer().TryPresent(100)) { | 227 | if (Core::System::GetInstance().Renderer().TryPresent(100)) { |
| 229 | context->SwapBuffers(); | 228 | context->SwapBuffers(); |
| 230 | glFinish(); | 229 | glFinish(); |