summaryrefslogtreecommitdiff
path: root/tests/kms_crtc_background_color.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_crtc_background_color.c')
-rw-r--r--tests/kms_crtc_background_color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_crtc_background_color.c b/tests/kms_crtc_background_color.c
index e99c67bd..6407e19b 100644
--- a/tests/kms_crtc_background_color.c
+++ b/tests/kms_crtc_background_color.c
@@ -69,7 +69,7 @@ paint_background(data_t *data, struct igt_fb *fb, drmModeModeInfo *mode,
b = (double) ((background & 0xFF0000) >> 16) / 255.0;
igt_paint_color_alpha(cr, 0, 0, w, h, r, g, b, alpha);
- cairo_destroy(cr);
+ igt_put_cairo_ctx(data->gfx_fd, &data->fb, cr);
}
static void prepare_crtc(data_t *data, igt_output_t *output, enum pipe pipe,