mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
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:
parent
3bdbf6274c
commit
e6f6ae94f3
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user