From 421b7e8f12083e9518fa7deda968a2f73c9a0006 Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Sun, 17 Aug 2008 19:57:02 +0200 Subject: [PATCH] exa: fix assert logic thinko from 361a9eb953aaa38f8ebc057185de29e50f9eef26 - I guess failing PrepareAccess is rare, since this a 3 year old bug. --- exa/exa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exa/exa.c b/exa/exa.c index c276d9aa7..e1bbb3238 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -514,7 +514,7 @@ ExaDoPrepareAccess(DrawablePtr pDrawable, int index) if (!(*pExaScr->info->PrepareAccess) (pPixmap, index)) { ExaPixmapPriv (pPixmap); - if (pExaPixmap->score != EXA_PIXMAP_SCORE_PINNED) + if (pExaPixmap->score == EXA_PIXMAP_SCORE_PINNED) FatalError("Driver failed PrepareAccess on a pinned pixmap\n"); exaMoveOutPixmap (pPixmap); }