summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-05-16 14:20:48 +0200
committerNiklas Haas <git@nand.wakku.to>2016-05-16 14:20:48 +0200
commite6f6ae94f3ab4e4e25c23b7cd837efee9eb64b75 (patch)
tree31e09f73e0b5513cbabe56748400be65ce463631
parent3bdbf6274c67224112b685ff15be7ecd8c21f4c7 (diff)
downloadmpv-e6f6ae94f3ab4e4e25c23b7cd837efee9eb64b75.tar.bz2
mpv-e6f6ae94f3ab4e4e25c23b7cd837efee9eb64b75.tar.xz
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)
-rw-r--r--video/out/opengl/video.c3
1 files changed, 3 insertions, 0 deletions
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];