From 4d1eab6e552681ef961ce48af74f6795e7077fc6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 21 Apr 2017 07:16:26 +0200 Subject: vo_opengl: fix crash by coping temporal_dither_period for dumb mode too Specifically, this field must never be 0 (and the option can naturally not be 0 in any way, unless it wasn't initialized correctly). --- video/out/opengl/video.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 251a3d4f8b..3189ec1ff3 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3070,6 +3070,7 @@ static void check_gl_features(struct gl_video *p) .dither_depth = p->opts.dither_depth, .dither_size = p->opts.dither_size, .temporal_dither = p->opts.temporal_dither, + .temporal_dither_period = p->opts.temporal_dither_period, .tex_pad_x = p->opts.tex_pad_x, .tex_pad_y = p->opts.tex_pad_y, .target_brightness = p->opts.target_brightness, -- cgit v1.2.3