From 55e6f5f220401318529e81f7c96fe0af3b893a0c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 28 May 2012 16:21:09 +0100 Subject: [PATCH] sna: Use the local function for turning the cursor off prior to release Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 5d84578f..3ec2d23c 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -915,7 +915,7 @@ sna_crtc_destroy(xf86CrtcPtr crtc) struct sna *sna = to_sna(crtc->scrn); struct sna_crtc *sna_crtc = crtc->driver_private; - drmModeSetCursor(sna->kgem.fd, crtc_id(sna_crtc), 0, 64, 64); + sna_crtc_hide_cursor(crtc); gem_close(sna->kgem.fd, sna_crtc->cursor); list_del(&sna_crtc->link);