summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-08-17 19:57:02 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-08-17 19:57:02 +0200
commit421b7e8f12083e9518fa7deda968a2f73c9a0006 (patch)
treeefa2202d712771fb6a8ca9d304706be627202c40 /exa
parent1e62e773273539352bc21b2da5262678dd3fc7df (diff)
exa: fix assert logic thinko from 361a9eb953aaa38f8ebc057185de29e50f9eef26
- I guess failing PrepareAccess is rare, since this a 3 year old bug.
Diffstat (limited to 'exa')
-rw-r--r--exa/exa.c2
1 files changed, 1 insertions, 1 deletions
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);
}