diff --git a/types/wlr_color_management_v1.c b/types/wlr_color_management_v1.c index 18ce6ec26..bc59f5309 100644 --- a/types/wlr_color_management_v1.c +++ b/types/wlr_color_management_v1.c @@ -469,8 +469,10 @@ static void image_desc_creator_params_handle_create(struct wl_client *client, return; } - if (!check_mastering_luminance_range(params_resource, ¶ms->data, params->data.max_cll, "max_cll") || - !check_mastering_luminance_range(params_resource, ¶ms->data, params->data.max_fall, "max_fall")) { + uint32_t version = wl_resource_get_version(params_resource); + if (version < 2 && + (!check_mastering_luminance_range(params_resource, ¶ms->data, params->data.max_cll, "max_cll") || + !check_mastering_luminance_range(params_resource, ¶ms->data, params->data.max_fall, "max_fall"))) { return; }