Bug 1464039 - Only reject qcms transform with invalid grid size if the transform function uses the grid size. r=Bas a=jcristau

This commit is contained in:
Nicolas Silva 2018-06-19 15:32:29 +02:00 • committed by Roy Tam
commit 1974d5079a
2 changed files with 8 additions and 2 deletions

View file

@ -972,7 +972,9 @@ static float* qcms_modular_transform_data(struct qcms_modular_transform *transfo
assert(0 && "Unsupported transform module");
return NULL;
}
if (transform->grid_size <= 0) {
if (transform->grid_size <= 0 &&
(transform_fn == qcms_transform_module_clut ||
transform_fn == qcms_transform_module_clut_only)) {
assert(0 && "Invalid transform");
return NULL;
}