diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2011-08-12 11:21:33 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2011-09-20 13:04:43 +0200 |
commit | d78860ba53d9bfcf6c28e1cfd2d970709b5e20fa (patch) | |
tree | b67a6bab975ff896eb5ae418530a0ad47a7ff12f /src/radeon_kms.c | |
parent | 11330ca5dc61a70fe4507e63230f9133ca22d891 (diff) |
Only call radeon_dri2_close_screen() if DRI2 was enabled.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
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); |