[PATCH xf86-video-wsfb 4/4] Do not call shawdowRemove() if shadow fb was disabled.

Matthieu Herrb matthieu.herrb at laas.fr
Sun Aug 29 05:55:07 PDT 2010


Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 src/wsfb_driver.c |    3 ++-
 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);
-- 
1.7.0.5



More information about the xorg-devel mailing list