summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-09-17 20:33:55 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-09-17 20:39:59 +0200
commit7ac89060e02c7a803018afd580720f8326561fd8 (patch)
treedb3d422cfccdb6bd0eed550567074f00716d8f8d
parent3876c6c80534a6f7412ec806a2ba9ada22c5e505 (diff)
EXA: Don't crash in exaGetImage when swapped out.
-rw-r--r--exa/exa_accel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 8500c5b7c..2acade263 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -1324,9 +1324,6 @@ exaGetImage (DrawablePtr pDrawable, int x, int y, int w, int h,
int xoff, yoff;
Bool ok;
- if (pExaScr->swappedOut)
- goto fallback;
-
pixmaps[0].as_dst = FALSE;
pixmaps[0].as_src = TRUE;
pixmaps[0].pPix = pPix = exaGetDrawablePixmap (pDrawable);
@@ -1341,6 +1338,9 @@ exaGetImage (DrawablePtr pDrawable, int x, int y, int w, int h,
REGION_INIT(pScreen, &Reg, &Box, 1);
+ if (pExaScr->swappedOut)
+ goto fallback;
+
exaDoMigration(pixmaps, 1, FALSE);
pPix = exaGetOffscreenPixmap (pDrawable, &xoff, &yoff);