From ec328783593339e33772301a8c5fea35fd63c0a2 Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Tue, 17 Mar 2009 10:45:21 +0100 Subject: [PATCH] exa: check if the pixmap is pinned for unsupported AUX indices. --- exa/exa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exa/exa.c b/exa/exa.c index 7145e1253c..3fcb3e248e 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; }