summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-20 04:44:24 +0100
committerwm4 <wm4@nowhere>2017-03-20 04:46:18 +0100
commitf8861f681f5b18ebb9c32cb6e4909766f92b9263 (patch)
tree24468e71b31b3496029d07ae218edb062c12c799 /video
parent84bf6aabf00466826d45737055eb5ea0dec05fb6 (diff)
downloadmpv-f8861f681f5b18ebb9c32cb6e4909766f92b9263.tar.bz2
mpv-f8861f681f5b18ebb9c32cb6e4909766f92b9263.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/video.c7
1 files changed, 6 insertions, 1 deletions
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,