diff options
author | wm4 <wm4@nowhere> | 2015-04-09 19:31:01 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-09 19:31:01 +0200 |
commit | e76f6929e52ff3a9d2159ad15876d9343ad88788 (patch) | |
tree | e2b9767492006aeedf40f66255a40c444241b98b /video | |
parent | 8dc7156bc0271965ea1e6768cfc7bbe67cef1876 (diff) |
vo_opengl_cb: deprecate mpv_opengl_cb_render()
Its vp parameter made no sense anymore. Introduce a new one.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/vo_opengl_cb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c index a7f7657889..2f2ac63f21 100644 --- a/video/out/vo_opengl_cb.c +++ b/video/out/vo_opengl_cb.c @@ -269,7 +269,7 @@ int mpv_opengl_cb_uninit_gl(struct mpv_opengl_cb_context *ctx) return 0; } -int mpv_opengl_cb_render(struct mpv_opengl_cb_context *ctx, int fbo, int vp[4]) +int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int vp_w, int vp_h) { assert(ctx->renderer); @@ -281,7 +281,6 @@ int mpv_opengl_cb_render(struct mpv_opengl_cb_context *ctx, int fbo, int vp[4]) ctx->force_update |= ctx->reconfigured; - int vp_w = vp[2], vp_h = vp[3]; if (ctx->vp_w != vp_w || ctx->vp_h != vp_h) ctx->force_update = true; |