From f8861f681f5b18ebb9c32cb6e4909766f92b9263 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Mar 2017 04:44:24 +0100 Subject: vo_opengl: properly respect dither option if dumb mode is used When dumb mode is used (the "simple" rendering path), respect the dither options. Options should never be ignored (except in GLESv2 mode); either they should be respected in dumb mode, or they should disable dumb mode. In this case, the former applies. --- video/out/opengl/video.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'video/out/opengl/video.c') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index a9ee6ea503..955fa2868a 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3041,7 +3041,12 @@ static void check_gl_features(struct gl_video *p) .alpha_mode = p->opts.alpha_mode, .use_rectangle = p->opts.use_rectangle, .background = p->opts.background, - .dither_algo = DITHER_NONE, + .dither_algo = p->opts.dither_algo, + .dither_depth = p->opts.dither_depth, + .dither_size = p->opts.dither_size, + .temporal_dither = p->opts.temporal_dither, + .tex_pad_x = p->opts.tex_pad_x, + .tex_pad_y = p->opts.tex_pad_y, .target_brightness = p->opts.target_brightness, .hdr_tone_mapping = p->opts.hdr_tone_mapping, .tone_mapping_param = p->opts.tone_mapping_param, -- cgit v1.2.3