summaryrefslogtreecommitdiff
path: root/perf/cairo-perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'perf/cairo-perf.c')
-rw-r--r--perf/cairo-perf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 67a4e510..72092fd1 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -128,12 +128,13 @@ _content_to_string (cairo_content_t content, cairo_bool_t similar)
static cairo_bool_t
cairo_perf_has_similar (cairo_perf_t *perf)
{
- cairo_surface_t *target = cairo_get_target (perf->cr);
+ cairo_surface_t *target;
- if (getenv ("CAIRO_TEST_IGNORE_SIMILAR"))
+ if (getenv ("CAIRO_TEST_SIMILAR") == NULL)
return FALSE;
/* exclude the image backend */
+ target = cairo_get_target (perf->cr);
if (cairo_surface_get_type (target) == CAIRO_SURFACE_TYPE_IMAGE)
return FALSE;