summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2009-03-17 10:45:21 +0100
committerMaarten Maathuis <madman2003@gmail.com>2009-03-18 19:36:18 +0100
commitec328783593339e33772301a8c5fea35fd63c0a2 (patch)
tree971646b2792b503c6349ad79936d36423b85332c
parent3992dd38caf33b343affd8d732c94880d1099dcf (diff)
exa: check if the pixmap is pinned for unsupported AUX indices.
-rw-r--r--exa/exa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exa/exa.c b/exa/exa.c
index 7145e1253..3fcb3e248 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -585,6 +585,8 @@ ExaDoPrepareAccess(DrawablePtr pDrawable, int index)
if (index >= EXA_PREPARE_AUX_DEST &&
!(pExaScr->info->flags & EXA_SUPPORTS_PREPARE_AUX)) {
+ if (pExaPixmap->score == EXA_PIXMAP_SCORE_PINNED)
+ FatalError("Unsupported AUX indices used on a pinned pixmap.\n");
exaMoveOutPixmap (pPixmap);
return FALSE;
}