diff options
author | wm4 <wm4@nowhere> | 2017-04-20 06:16:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-20 06:19:55 +0200 |
commit | 5ae25ae42449b29edcb5d4561ef83f950fd26683 (patch) | |
tree | 50f041b3e7851dc2f2af1b63b71c2fd9f00d577e /libmpv/opengl_cb.h | |
parent | f41e50530fb8144793a89d5edbccb1a415415e16 (diff) | |
download | mpv-5ae25ae42449b29edcb5d4561ef83f950fd26683.tar.bz2 mpv-5ae25ae42449b29edcb5d4561ef83f950fd26683.tar.xz |
client API: add MPV_ENABLE_DEPRECATED symbol
(Of course this is on by default, because otherwise we'd randomly break
downstream applications.)
Diffstat (limited to 'libmpv/opengl_cb.h')
-rw-r--r-- | libmpv/opengl_cb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpv/opengl_cb.h b/libmpv/opengl_cb.h index c77665d895..2c6219a462 100644 --- a/libmpv/opengl_cb.h +++ b/libmpv/opengl_cb.h @@ -286,6 +286,7 @@ int mpv_opengl_cb_init_gl(mpv_opengl_cb_context *ctx, const char *exts, */ int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int w, int h); +#if MPV_ENABLE_DEPRECATED /** * Deprecated. Use mpv_opengl_cb_draw(). This function is equivalent to: * @@ -298,6 +299,7 @@ int mpv_opengl_cb_draw(mpv_opengl_cb_context *ctx, int fbo, int w, int h); * was never marked as stable). */ int mpv_opengl_cb_render(mpv_opengl_cb_context *ctx, int fbo, int vp[4]); +#endif /** * Tell the renderer that a frame was flipped at the given time. This is |