diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-26 05:21:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-26 10:55:24 +0200 |
commit | b1d8346ed95f356842455fedb415f97d6c4cacb9 (patch) | |
tree | 90be0f3054f0e5f9988f25290c5fbedf1ee9914e /src/capture/xcomposite.c | |
parent | af4f9b805a947b4495961a519af6045cd3f19a33 (diff) |
Move glClear and glx/eglSwapBuffers from capture backends to main
Diffstat (limited to 'src/capture/xcomposite.c')
-rw-r--r-- | src/capture/xcomposite.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/capture/xcomposite.c b/src/capture/xcomposite.c index 7e78fb9..a81c19f 100644 --- a/src/capture/xcomposite.c +++ b/src/capture/xcomposite.c @@ -317,9 +317,6 @@ static int gsr_capture_xcomposite_capture(gsr_capture *cap, AVFrame *frame, gsr_ gsr_capture_xcomposite *self = cap->priv; (void)frame; - //self->params.egl->glClearColor(0.0f, 0.0f, 0.0f, 1.0f); - self->params.egl->glClear(0); - if(self->clear_background) { self->clear_background = false; gsr_color_conversion_clear(color_conversion); @@ -352,8 +349,6 @@ static int gsr_capture_xcomposite_capture(gsr_capture *cap, AVFrame *frame, gsr_ self->params.egl->glDisable(GL_SCISSOR_TEST); } - self->params.egl->eglSwapBuffers(self->params.egl->egl_display, self->params.egl->egl_surface); - // TODO: Do video encoder specific conversion here //self->params.egl->glFlush(); |