From e6f6ae94f3ab4e4e25c23b7cd837efee9eb64b75 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Mon, 16 May 2016 14:20:48 +0200 Subject: vo_opengl: copy over HDR parameters to dumb_mode Since dumb mode is affected by tone mapping (which I'll call a feature, not a bug), we need to copy over the configuration - in particular, the defaults. (To prevent a render failure) --- video/out/opengl/video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 3b31711f86..291290b2cc 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3063,6 +3063,9 @@ static void check_gl_features(struct gl_video *p) .use_rectangle = p->opts.use_rectangle, .background = p->opts.background, .dither_algo = DITHER_NONE, + .target_brightness = p->opts.target_brightness, + .hdr_tone_mapping = p->opts.hdr_tone_mapping, + .tone_mapping_param = p->opts.tone_mapping_param, }; for (int n = 0; n < SCALER_COUNT; n++) new_opts.scaler[n] = gl_video_opts_def.scaler[n]; -- cgit v1.2.3