diff options
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | 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 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); |