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)
This commit is contained in:
Niklas Haas committed 2016-05-16 14:20:48 +02:00
1 parent 3bdbf6274c
commit e6f6ae94f3
1 file changed
+3
+3
View File
@@ -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];