diff options
author | wm4 <wm4@nowhere> | 2017-03-20 13:37:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-20 13:37:47 +0100 |
commit | b0cbda84ed923c8915642443b7cf5de5a2ba7b26 (patch) | |
tree | f55fce180487486f332dd73c6ffb9928187d4f2c /video/out/opengl/context.c | |
parent | 8fb9cc253457a58c39013906643e8dc92171adbe (diff) | |
download | mpv-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/opengl/context.c')
-rw-r--r-- | video/out/opengl/context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index 4985c8a326..6fdc123fb6 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -240,6 +240,12 @@ int mpgl_control(struct MPGLContext *ctx, int *events, int request, void *arg) return ctx->driver->control(ctx, events, request, arg); } +void mpgl_start_frame(struct MPGLContext *ctx) +{ + if (ctx->driver->start_frame) + ctx->driver->start_frame(ctx); +} + void mpgl_swap_buffers(struct MPGLContext *ctx) { ctx->driver->swap_buffers(ctx); |