summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-28 19:40:52 +0100
committerwm4 <wm4@nowhere>2015-01-28 19:40:52 +0100
commit616481ad290b3bc43d551d946dd5c0fe7423f8b2 (patch)
treecd1fb481d62b3916d5db06a9265460a90d9e27c0 /video/out/vo_opengl.c
parent3583559164b922673b2ccdb31f810befae613779 (diff)
downloadmpv-616481ad290b3bc43d551d946dd5c0fe7423f8b2.tar.bz2
mpv-616481ad290b3bc43d551d946dd5c0fe7423f8b2.tar.xz
vo_opengl: remove some unused functions
These were intended for some plans that were never realized. Also move some comments around and fix them.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 9da92e3858..be8fbc9d7a 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -424,7 +424,7 @@ static int preinit(struct vo *vo)
goto err_out;
p->gl = p->glctx->gl;
- mpgl_set_context(p->glctx);
+ mpgl_lock(p->glctx);
if (p->gl->SwapInterval)
p->gl->SwapInterval(p->swap_interval);
@@ -444,7 +444,7 @@ static int preinit(struct vo *vo)
if (!get_and_update_icc_profile(p, &(int){0}))
goto err_out;
- mpgl_unset_context(p->glctx);
+ mpgl_unlock(p->glctx);
p->hwdec_info.load_api = call_request_hwdec_api;
p->hwdec_info.load_api_ctx = vo;