summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-11-17 10:24:39 +1000
committerDave Airlie <airlied@redhat.com>2008-11-17 10:24:39 +1000
commit8f8a9c19ad58768b07461a3f4bccea98f7c4f958 (patch)
tree29b53a80141ceae44eda501378b6bd61ca66091f
parent03f7a66a1ae3f522a49bcc783066d53d69c97262 (diff)
EXA: avoid copy operations if no boxes in use
Simple fix for now, I'm sure damage shouldn't be calling us with nbox = 0.
-rw-r--r--exa/exa_accel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 522224be6..ccef74422 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -401,6 +401,10 @@ exaCopyNtoN (DrawablePtr pSrcDrawable,
RegionPtr srcregion = NULL, dstregion = NULL;
xRectangle *rects;
+ /* avoid doing copy operations if no boxes */
+ if (nbox == 0)
+ return;
+
pSrcPixmap = exaGetDrawablePixmap (pSrcDrawable);
pDstPixmap = exaGetDrawablePixmap (pDstDrawable);