aboutsummaryrefslogtreecommitdiff
path: root/src/capture/portal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/capture/portal.c')
-rw-r--r--src/capture/portal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/capture/portal.c b/src/capture/portal.c
index 58d16d9..db5ba4e 100644
--- a/src/capture/portal.c
+++ b/src/capture/portal.c
@@ -336,6 +336,9 @@ static int gsr_capture_portal_capture(gsr_capture *cap, AVFrame *frame, gsr_colo
const vec2i target_pos = { max_int(0, frame->width / 2 - self->capture_size.x / 2), max_int(0, frame->height / 2 - self->capture_size.y / 2) };
+ self->params.egl->glFlush();
+ self->params.egl->glFinish();
+
// TODO: Handle region crop
/* Fast opengl free path */