summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wsfb_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wsfb_driver.c b/src/wsfb_driver.c
index d4ad995..b146905 100644
--- a/src/wsfb_driver.c
+++ b/src/wsfb_driver.c
@@ -949,7 +949,8 @@ WsfbCloseScreen(int scrnIndex, ScreenPtr pScreen)
TRACE_ENTER("WsfbCloseScreen");
pPixmap = pScreen->GetScreenPixmap(pScreen);
- shadowRemove(pScreen, pPixmap);
+ if (fPtr->shadowFB)
+ shadowRemove(pScreen, pPixmap);
if (pScrn->vtSema) {
WsfbRestore(pScrn);