summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/mask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-tests/mask.cpp')
-rw-r--r--src/cairo-tests/mask.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cairo-tests/mask.cpp b/src/cairo-tests/mask.cpp
index 6342afe..93e17eb 100644
--- a/src/cairo-tests/mask.cpp
+++ b/src/cairo-tests/mask.cpp
@@ -27,14 +27,10 @@ ca_setup_mask(caskbench_context_t *ctx)
0x00, 0xFF, 0xFF, 0x00,
0x00, 0xFF, 0xFF, 0x00,
0xFF, 0x00, 0x00, 0xFF, };
- static cairo_surface_t *stippled = NULL;
- cairo_surface_t *cairo_surface;
-
- if (stippled == NULL) {
- stippled = cairo_image_surface_create_for_data(data, CAIRO_FORMAT_A8, 2, 2, 4);
- }
+ cairo_surface_t *stippled = cairo_image_surface_create_for_data(data, CAIRO_FORMAT_A8, 2, 2, 4);
#if USE_EGL
+ cairo_surface_t *cairo_surface;
cairo_device_t *cairo_device = cairo_surface_get_device (ctx->cairo_surface);
if (cairo_surface_get_type (ctx->cairo_surface) == CAIRO_SURFACE_TYPE_IMAGE) {
cairo_surface = cairo_image_surface_create (CAIRO_FORMAT_A8, 2, 2);