Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 096c847

Browse files
committed
Explicit clean up
1 parent 0b7d8b8 commit 096c847

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

shell/platform/windows/compositor_opengl.cc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,12 @@ bool CompositorOpenGL::Present(const FlutterLayer** layers,
153153
GL_NEAREST // filter
154154
);
155155

156-
// TODO: Should we add this?
157-
// gl_->BindFramebuffer(GL_READ_FRAMEBUFFER, 0);
158-
// gl_->BindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
159-
//
160-
// gl_->Enable(GL_SCISSOR_TEST);
161-
// gl_->Enable(GL_DEPTH_TEST);
162-
// gl_->Enable(GL_STENCIL_TEST);
156+
gl_->BindFramebuffer(GL_READ_FRAMEBUFFER, 0);
157+
gl_->BindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
158+
159+
gl_->Enable(GL_SCISSOR_TEST);
160+
gl_->Enable(GL_DEPTH_TEST);
161+
gl_->Enable(GL_STENCIL_TEST);
163162

164163
return engine_->view()->SwapBuffers();
165164
}

0 commit comments

Comments
 (0)