Fix first frame is black

This commit is contained in:
dec05eba
2024-09-21 16:38:15 +02:00
parent fb707aee6f
commit 95e1971f8f
4 changed files with 12 additions and 3 deletions

View File

@@ -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 */