summaryrefslogtreecommitdiffstats
path: root/gfx/qcms
diff options
context:
space:
mode:
authorNicolas Silva <nsilva@mozilla.com>2018-06-19 15:32:29 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-30 19:04:10 +0200
commit3858dd6de2f4d510b42ca8675235469b8b78ed02 (patch)
tree32b83bc480cf3d65837dd0d2c2f0d6ea08ccbc21 /gfx/qcms
parentbb89f847383c982f25497a31f94129bf65e50868 (diff)
downloadUXP-3858dd6de2f4d510b42ca8675235469b8b78ed02.tar
UXP-3858dd6de2f4d510b42ca8675235469b8b78ed02.tar.gz
UXP-3858dd6de2f4d510b42ca8675235469b8b78ed02.tar.lz
UXP-3858dd6de2f4d510b42ca8675235469b8b78ed02.tar.xz
UXP-3858dd6de2f4d510b42ca8675235469b8b78ed02.zip
Bug 1464039 - Only reject qcms transform with invalid grid size if the transform function uses the grid size. r=Bas a=jcristau
Diffstat (limited to 'gfx/qcms')
-rw-r--r--gfx/qcms/chain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gfx/qcms/chain.c b/gfx/qcms/chain.c
index 2b0e707c4..dbae18378 100644
--- a/gfx/qcms/chain.c
+++ b/gfx/qcms/chain.c
@@ -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;
}