diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-07-17 17:15:15 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-07-17 17:15:15 +0000 |
commit | 301f11bce5a3c84f04cec6df50b03ff1fadc559d (patch) | |
tree | cdb54e139184b42651e4b908315e2a25242409e4 /driver/xf86-video-wsfb/src | |
parent | f17a36988032f0062b42a22f55620cfbe1ab9ce0 (diff) |
Do not call shawdowRemove() if shadow fb was disabled.
Diffstat (limited to 'driver/xf86-video-wsfb/src')
-rw-r--r-- | driver/xf86-video-wsfb/src/wsfb_driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/driver/xf86-video-wsfb/src/wsfb_driver.c b/driver/xf86-video-wsfb/src/wsfb_driver.c index 697ac1d4c..d4c8a4d9a 100644 --- a/driver/xf86-video-wsfb/src/wsfb_driver.c +++ b/driver/xf86-video-wsfb/src/wsfb_driver.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsfb_driver.c,v 1.20 2010/02/04 06:24:47 matthieu Exp $ */ +/* $OpenBSD: wsfb_driver.c,v 1.21 2010/07/17 17:15:14 matthieu Exp $ */ /* * Copyright (c) 2001 Matthieu Herrb * All rights reserved. @@ -1065,7 +1065,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); |