summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-19 11:56:19 +0100
committerwm4 <wm4@nowhere>2015-12-19 14:14:12 +0100
commit3394d37b4ea6876c0a4484c51ba23e6b8ed08e5a (patch)
tree95e646d22bb8ca0ffb28e9c5850a1241739da8ec /video/out/vo_opengl.c
parentd2baaaa7df87eba9566fb935eeab5bd0af80fe1b (diff)
downloadmpv-3394d37b4ea6876c0a4484c51ba23e6b8ed08e5a.tar.bz2
mpv-3394d37b4ea6876c0a4484c51ba23e6b8ed08e5a.tar.xz
vo_opengl: refactor how framebuffer depth is passed from backends
Store the determined framebuffer depth in struct GL instead of MPGLContext. This means gl_video_set_output_depth() can be removed, and also justifies adding new fields describing framebuffer/backend properties to struct GL instead of having to add more functions just to shovel the information around. Keep in mind that mpgl_load_functions() will wipe struct GL, so the new fields must be set before calling it.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index ef6fe53e43..068b004e5d 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -423,8 +423,6 @@ static int preinit(struct vo *vo)
if (!p->renderer)
goto err_out;
gl_video_set_osd_source(p->renderer, vo->osd);
- 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);
gl_video_configure_queue(p->renderer, vo);