From d78860ba53d9bfcf6c28e1cfd2d970709b5e20fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 12 Aug 2011 11:21:33 +0200 Subject: 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 Signed-off-by: Michel Dänzer --- src/radeon_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/radeon_kms.c') diff --git a/src/radeon_kms.c b/src/radeon_kms.c index e1615527..32065fb9 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -876,7 +876,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); -- cgit v1.2.3