diff options
author | wm4 <wm4@nowhere> | 2015-05-01 18:44:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-01 18:44:45 +0200 |
commit | 0a7abbda6b555fb7746f737b52d0f00fb3e614db (patch) | |
tree | f97223c385573718609738b5b8ffda09a7ecfa86 /video/out/vo_opengl_cb.c | |
parent | e23e4c7c603fc1cd911621d0f833031be4a6f7c7 (diff) | |
download | mpv-0a7abbda6b555fb7746f737b52d0f00fb3e614db.tar.bz2 mpv-0a7abbda6b555fb7746f737b52d0f00fb3e614db.tar.xz |
vo_opengl: refactor wayland frame skipping
Currently, the wayland backend needs extra work to avoid drawing more
often than the wayland frame callback allows. (This is not ideal, but
will be fixed at a later time.)
Unify this with the start_frame callback added for cocoa. Some details
change for the better. For example, if a frame is dropped, and a redraw
is done afterwards, the actually correct frame is redrawn, instead
whatever was in the textures from before the dropped frame.
Diffstat (limited to 'video/out/vo_opengl_cb.c')
-rw-r--r-- | video/out/vo_opengl_cb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c index 2f2ac63f21..1a2e1bf9a8 100644 --- a/video/out/vo_opengl_cb.c +++ b/video/out/vo_opengl_cb.c @@ -328,7 +328,7 @@ int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int vp_w, int vp_h) pthread_mutex_unlock(&ctx->lock); if (mpi) - gl_video_upload_image(ctx->renderer, mpi); + gl_video_set_image(ctx->renderer, mpi); gl_video_render_frame(ctx->renderer, fbo, NULL); |