mirror of https://github.com/mpv-player/mpv
vo_gpu: enable 3DLUTs in dumb mode
Unless FBOs are unsupported, this works. In particular, it's required to get ICC profiles working in voluntary dumb mode. So instead of blanket-disabling it, only disable it in the !have_fbo false case.
This commit is contained in:
parent
5597db7081
commit
eb69e73eb4
|
@ -3390,7 +3390,6 @@ static void check_gl_features(struct gl_video *p)
|
|||
"Most extended features will be disabled.\n");
|
||||
}
|
||||
p->dumb_mode = true;
|
||||
p->use_lut_3d = false;
|
||||
// Most things don't work, so whitelist all options that still work.
|
||||
p->opts = (struct gl_video_opts){
|
||||
.gamma = p->opts.gamma,
|
||||
|
@ -3411,9 +3410,12 @@ static void check_gl_features(struct gl_video *p)
|
|||
.tone_mapping_param = p->opts.tone_mapping_param,
|
||||
.tone_mapping_desat = p->opts.tone_mapping_desat,
|
||||
.early_flush = p->opts.early_flush,
|
||||
.icc_opts = p->opts.icc_opts,
|
||||
};
|
||||
for (int n = 0; n < SCALER_COUNT; n++)
|
||||
p->opts.scaler[n] = gl_video_opts_def.scaler[n];
|
||||
if (!have_fbo)
|
||||
p->use_lut_3d = false;
|
||||
return;
|
||||
}
|
||||
p->dumb_mode = false;
|
||||
|
|
Loading…
Reference in New Issue