瀏覽代碼

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.
ReinUsesLisp 6 年之前
父節點
當前提交
c6ea0d010b
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/yuzu/bootmanager.cpp

+ 0 - 1
src/yuzu/bootmanager.cpp

@@ -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();