summaryrefslogtreecommitdiff
path: root/tests/kms_ccs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/kms_ccs.c')
-rw-r--r--tests/kms_ccs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index bc34aec5..b60e4908 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -246,7 +246,7 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
cr = igt_get_cairo_ctx(data->drm_fd, fb);
igt_paint_color(cr, 0, 0, width, height,
colors[c].r, colors[c].g, colors[c].b);
- igt_put_cairo_ctx(data->drm_fd, fb, cr);
+ igt_put_cairo_ctx(cr);
}
ret = drmIoctl(data->drm_fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f);