[PATCH 3/6] exa: same treatment for FinishAccess.

Maarten Maathuis madman2003 at gmail.com
Sat Feb 28 16:36:32 PST 2009


---
 exa/exa.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/exa/exa.c b/exa/exa.c
index 17d75d2..7501b65 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -607,10 +607,11 @@ exaFinishAccess(DrawablePtr pDrawable, int index)
     PixmapPtr	    pPixmap = exaGetDrawablePixmap (pDrawable);
     ExaPixmapPriv  (pPixmap);
 
-    /* Rehide pixmap pointer if we're doing that. */
-    if (pExaPixmap && !(pExaScr->info->flags & EXA_HANDLES_PIXMAPS)) {
-	pPixmap->devPrivate.ptr = NULL;
-    }
+    if (!pExaPixmap)
+	FatalError("Calling FinishAccess on a pixmap not known to exa.\n");
+
+    /* We always hide the devPrivate.ptr. */
+    pPixmap->devPrivate.ptr = NULL;
 
     if (pExaScr->info->FinishAccess == NULL)
 	return;
-- 
1.6.1.3



More information about the xorg-devel mailing list