summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-03 21:02:33 +0100
committerwm4 <wm4@nowhere>2014-12-03 21:02:33 +0100
commitbfa7893fe9601f969aedd26f7cfdba92d919a8b3 (patch)
treeb4da31b5d5d2d4ecbb47aece72bd0df4de25808a /video/out/vo_opengl.c
parent82afc0f343e9b5d561051ebee51d0feffbde0377 (diff)
downloadmpv-bfa7893fe9601f969aedd26f7cfdba92d919a8b3.tar.bz2
mpv-bfa7893fe9601f969aedd26f7cfdba92d919a8b3.tar.xz
vda: make independent from cocoa backend
Basically, don't access the vo field. There's also no reason anymore to access MPGLContext. We still need to access loaded GL functions though, so add a field for that to gl_hwdec. Untested.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index d3fdf88372..482eed1b79 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -228,6 +228,7 @@ static void load_hwdec_driver(struct gl_priv *p,
.driver = drv,
.log = mp_log_new(hwdec, p->vo->log, drv->api_name),
.mpgl = p->glctx,
+ .gl = p->glctx->gl,
.info = &p->hwdec_info,
.gl_texture_target = GL_TEXTURE_2D,
};