diff options
author | wm4 <wm4@nowhere> | 2014-12-22 12:49:20 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-22 12:49:20 +0100 |
commit | 2b9a7c4b5bc5697241cb8e1448b2056d20b50b77 (patch) | |
tree | 32bd4391ef66c54d73f79df1f1461f390b39a7b3 /video/out/vo_opengl.c | |
parent | cb347a9d05bf826f645c6d42b80db014cfc31827 (diff) | |
download | mpv-2b9a7c4b5bc5697241cb8e1448b2056d20b50b77.tar.bz2 mpv-2b9a7c4b5bc5697241cb8e1448b2056d20b50b77.tar.xz |
vo_opengl, vo_opengl_cb: check GL version in renderer
vo_opengl actually checks this in the context creation code already, but
it still increases robustness in case the requirements are changed
later.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index bc98f513a7..67cd3ce9dd 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -422,6 +422,8 @@ static int preinit(struct vo *vo) p->gl->SwapInterval(p->swap_interval); p->renderer = gl_video_init(p->gl, vo->log, vo->osd); + if (!p->renderer) + goto err_out; gl_video_set_output_depth(p->renderer, p->glctx->depth_r, p->glctx->depth_g, p->glctx->depth_b); gl_video_set_options(p->renderer, p->renderer_opts); |