From 301f11bce5a3c84f04cec6df50b03ff1fadc559d Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sat, 17 Jul 2010 17:15:15 +0000 Subject: Do not call shawdowRemove() if shadow fb was disabled. --- driver/xf86-video-wsfb/src/wsfb_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'driver/xf86-video-wsfb/src') 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); -- cgit v1.2.3