summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-20 13:37:47 +0100
committerwm4 <wm4@nowhere>2017-03-20 13:37:47 +0100
commitb0cbda84ed923c8915642443b7cf5de5a2ba7b26 (patch)
treef55fce180487486f332dd73c6ffb9928187d4f2c /video/out/vo_opengl.c
parent8fb9cc253457a58c39013906643e8dc92171adbe (diff)
downloadmpv-b0cbda84ed923c8915642443b7cf5de5a2ba7b26.tar.bz2
mpv-b0cbda84ed923c8915642443b7cf5de5a2ba7b26.tar.xz
vo_opengl: add a backend start_frame callback for context_vdpau
Might be useful for other backends too. For context_vdpau, resize handling, presentation, and handling the mapping state becomes somewhat less awkward.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 88c23fae32..9b3f944e21 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -122,6 +122,8 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
struct gl_priv *p = vo->priv;
GL *gl = p->gl;
+ mpgl_start_frame(p->glctx);
+
if (gl->FenceSync && p->num_vsync_fences < p->opts.vsync_fences) {
GLsync fence = gl->FenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);;
if (fence)