From a260447649587f2856563a41d5cb63ac3a0ebe27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 23 May 2011 10:36:52 +0200 Subject: [PATCH] Only call radeon_dri2_close_screen() if DRI2 was enabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/radeon_kms.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/radeon_kms.c b/src/radeon_kms.c index fc113dc..7790a38 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -857,7 +857,8 @@ static Bool RADEONCloseScreen_KMS(int scrnIndex, ScreenPtr pScreen) if (info->cursor) xf86DestroyCursorInfoRec(info->cursor); info->cursor = NULL; - radeon_dri2_close_screen(pScreen); + if (info->dri2.enabled) + radeon_dri2_close_screen(pScreen); pScrn->vtSema = FALSE; xf86ClearPrimInitDone(info->pEnt->index); -- 1.7.5.1