summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--transform.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/transform.c b/transform.c
index 7a6cbd2..027139a 100644
--- a/transform.c
+++ b/transform.c
@@ -1163,8 +1163,8 @@ void qcms_profile_precache_output_transform(qcms_profile *profile)
profile->output_table_b = precache_create();
if (profile->output_table_b &&
!compute_precache(profile->blueTRC, profile->output_table_b->data)) {
- precache_release(profile->output_table_g);
- profile->output_table_g = NULL;
+ precache_release(profile->output_table_b);
+ profile->output_table_b = NULL;
}
}
}
@@ -1226,13 +1226,16 @@ qcms_transform* qcms_transform_create(
else
transform->transform_fn = qcms_transform_data_rgba_out_lut_sse2;
+#if !(defined(_MSC_VER) && defined(_M_AMD64))
+ /* Microsoft Compiler for x64 doesn't support MMX.
+ * SSE code uses MMX so that we disable on x64 */
} else
if (sse_version_available() >= 1) {
if (in_type == QCMS_DATA_RGB_8)
transform->transform_fn = qcms_transform_data_rgb_out_lut_sse1;
else
transform->transform_fn = qcms_transform_data_rgba_out_lut_sse1;
-
+#endif
} else
#endif
{