From b1d8346ed95f356842455fedb415f97d6c4cacb9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 26 Jul 2024 05:21:47 +0200 Subject: Move glClear and glx/eglSwapBuffers from capture backends to main --- src/capture/portal.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/capture/portal.c') diff --git a/src/capture/portal.c b/src/capture/portal.c index 092fd9f..a53f0a1 100644 --- a/src/capture/portal.c +++ b/src/capture/portal.c @@ -297,9 +297,6 @@ static int gsr_capture_portal_capture(gsr_capture *cap, AVFrame *frame, gsr_colo gsr_capture_portal_cleanup_plane_fds(self); - //egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - self->params.egl->glClear(0); - /* TODO: Handle formats other than RGB(a) */ gsr_pipewire_region region = {0, 0, 0, 0}; gsr_pipewire_region cursor_region = {0, 0, 0, 0}; @@ -332,8 +329,6 @@ static int gsr_capture_portal_capture(gsr_capture *cap, AVFrame *frame, gsr_colo 0.0f, false); self->params.egl->glDisable(GL_SCISSOR_TEST); - self->params.egl->eglSwapBuffers(self->params.egl->egl_display, self->params.egl->egl_surface); - //self->params.egl->glFlush(); //self->params.egl->glFinish(); -- cgit v1.2.3