From 3394d37b4ea6876c0a4484c51ba23e6b8ed08e5a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 19 Dec 2015 11:56:19 +0100 Subject: 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. --- video/out/vo_opengl.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'video/out/vo_opengl.c') 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); -- cgit v1.2.3