summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/libmpv_gpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gpu/libmpv_gpu.c')
-rw-r--r--video/out/gpu/libmpv_gpu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/video/out/gpu/libmpv_gpu.c b/video/out/gpu/libmpv_gpu.c
index 8b93dcadfd..542db7f52c 100644
--- a/video/out/gpu/libmpv_gpu.c
+++ b/video/out/gpu/libmpv_gpu.c
@@ -81,14 +81,14 @@ static int init(struct render_backend *ctx, mpv_render_param *params)
void *data = params[n].data;
if (entry->size)
data = talloc_memdup(p, data, entry->size);
- ra_add_native_resource(p->context->ra, entry->name, data);
+ ra_add_native_resource(p->context->ra_ctx->ra, entry->name, data);
}
}
- p->renderer = gl_video_init(p->context->ra, ctx->log, ctx->global);
+ p->renderer = gl_video_init(p->context->ra_ctx->ra, ctx->log, ctx->global);
ctx->hwdec_devs = hwdec_devices_create();
- gl_video_load_hwdecs(p->renderer, ctx->hwdec_devs, true);
+ gl_video_init_hwdecs(p->renderer, p->context->ra_ctx, ctx->hwdec_devs, true);
ctx->driver_caps = VO_CAP_ROTATE90;
return 0;
}
@@ -185,18 +185,18 @@ static int render(struct render_backend *ctx, mpv_render_param *params,
&(int){0});
struct ra_fbo target = {.tex = tex, .flip = flip};
- gl_video_render_frame(p->renderer, frame, target, RENDER_FRAME_DEF);
+ gl_video_render_frame(p->renderer, frame, &target, RENDER_FRAME_DEF);
p->context->fns->done_frame(p->context, frame->display_synced);
return 0;
}
static struct mp_image *get_image(struct render_backend *ctx, int imgfmt,
- int w, int h, int stride_align)
+ int w, int h, int stride_align, int flags)
{
struct priv *p = ctx->priv;
- return gl_video_get_image(p->renderer, imgfmt, w, h, stride_align);
+ return gl_video_get_image(p->renderer, imgfmt, w, h, stride_align, flags);
}
static void screenshot(struct render_backend *ctx, struct vo_frame *frame,