Prefer precache output curves even if a A2B/B2A CLUT is present.
Reviewed-by: Jeff Muizelaar <jmuizelaar@mozilla.com>
Mozilla-bug: 752254
diff --git a/transform.c b/transform.c
index f19517f..ce271fb 100644
--- a/transform.c
+++ b/transform.c
@@ -994,13 +994,15 @@
if (profile->color_space != RGB_SIGNATURE)
return;
- /* don't precache since we will use the B2A LUT */
- if (profile->B2A0)
- return;
+ if (qcms_supports_iccv4) {
+ /* don't precache since we will use the B2A LUT */
+ if (profile->B2A0)
+ return;
- /* don't precache since we will use the mBA LUT */
- if (profile->mBA)
- return;
+ /* don't precache since we will use the mBA LUT */
+ if (profile->mBA)
+ return;
+ }
/* don't precache if we do not have the TRC curves */
if (!profile->redTRC || !profile->greenTRC || !profile->blueTRC)