diff options
Diffstat (limited to 'gfx/qcms/chain.c')
-rw-r--r-- | gfx/qcms/chain.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/qcms/chain.c b/gfx/qcms/chain.c index edc917153..125b0de3d 100644 --- a/gfx/qcms/chain.c +++ b/gfx/qcms/chain.c @@ -968,6 +968,12 @@ static float* qcms_modular_transform_data(struct qcms_modular_transform *transfo assert(0 && "Unsupported transform module"); return NULL; } + if (transform->grid_size <= 0 && + (transform_fn == qcms_transform_module_clut || + transform_fn == qcms_transform_module_clut_only)) { + assert(0 && "Invalid transform"); + return NULL; + } transform->transform_module_fn(transform,src,dest,len); dest = src; src = new_src; |