diff options
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r-- | video/out/opengl/video.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 5ed831bfe5..a89ee4e73a 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2202,6 +2202,11 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo) gl->UseProgram(0); gl->BindFramebuffer(GL_FRAMEBUFFER, 0); + // The playloop calls this last before waiting some time until it decides + // to call flip_page(). Tell OpenGL to start execution of the GPU commands + // while we sleep (this happens asynchronously). + gl->Flush(); + p->frames_rendered++; } |