vo/gpu: fix check on src/dst peak mismatch

In the past, src peak was always equal to or higher than dst peak. But
since `--target-peak` got introduced, this could no longer be the case.
This leads to an incorrect result (scaling for peak mismatch in gamma
light) unless some other option (CMS, --linear-scaling, etc.) forces the
linearization.

Fixes #6533
This commit is contained in:
Niklas Haas 2019-09-05 17:10:19 +02:00 committed by Jan Ekström
parent 6d90517275
commit 4b25ec3a9d
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ void pass_color_map(struct gl_shader_cache *sc, bool is_linear,
// operations needs it
bool need_linear = src.gamma != dst.gamma ||
src.primaries != dst.primaries ||
src.sig_peak > dst.sig_peak ||
src.sig_peak != dst.sig_peak ||
need_ootf;
if (need_linear && !is_linear) {