mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 10:18:01 +02:00
color: check maxCLL and maxFALL against target lum always
The target luminance range is implied when not explicitly set, so maxCLL and maxFALL should be checked against target luminances regardless of whether target luminances are explicit. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
a17d5b4eb2
commit
b8ac69eef1
1 changed files with 0 additions and 6 deletions
|
|
@ -758,9 +758,6 @@ validate_maxcll(struct weston_color_profile_param_builder *builder)
|
|||
maxCLL);
|
||||
}
|
||||
|
||||
if (!(builder->group_mask & WESTON_COLOR_PROFILE_PARAMS_TARGET_LUMINANCE))
|
||||
return;
|
||||
|
||||
if (builder->params.target_min_luminance >= maxCLL)
|
||||
store_error(builder, WESTON_COLOR_PROFILE_PARAM_BUILDER_ERROR_INVALID_LUMINANCE,
|
||||
"maxCLL (%f) should be greater than target min luminance (%f)",
|
||||
|
|
@ -783,9 +780,6 @@ validate_maxfall(struct weston_color_profile_param_builder *builder)
|
|||
maxFALL);
|
||||
}
|
||||
|
||||
if (!(builder->group_mask & WESTON_COLOR_PROFILE_PARAMS_TARGET_LUMINANCE))
|
||||
return;
|
||||
|
||||
if (builder->params.target_min_luminance >= maxFALL)
|
||||
store_error(builder, WESTON_COLOR_PROFILE_PARAM_BUILDER_ERROR_INVALID_LUMINANCE,
|
||||
"maxFALL (%f) must be greater than min luminance (%f)",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue