From b0cbda84ed923c8915642443b7cf5de5a2ba7b26 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Mar 2017 13:37:47 +0100 Subject: 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. --- video/out/opengl/context.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video/out/opengl/context.c') 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); -- cgit v1.2.3