diff options
author | Dave Airlie <airlied@redhat.com> | 2008-11-17 10:24:39 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-11-17 10:24:39 +1000 |
commit | 8f8a9c19ad58768b07461a3f4bccea98f7c4f958 (patch) | |
tree | 29b53a80141ceae44eda501378b6bd61ca66091f /exa | |
parent | 03f7a66a1ae3f522a49bcc783066d53d69c97262 (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.
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_accel.c | 4 |
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); |