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.
This commit is contained in:
parent
03f7a66a1a
commit
8f8a9c19ad
|
@ -401,6 +401,10 @@ exaCopyNtoN (DrawablePtr pSrcDrawable,
|
||||||
RegionPtr srcregion = NULL, dstregion = NULL;
|
RegionPtr srcregion = NULL, dstregion = NULL;
|
||||||
xRectangle *rects;
|
xRectangle *rects;
|
||||||
|
|
||||||
|
/* avoid doing copy operations if no boxes */
|
||||||
|
if (nbox == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
pSrcPixmap = exaGetDrawablePixmap (pSrcDrawable);
|
pSrcPixmap = exaGetDrawablePixmap (pSrcDrawable);
|
||||||
pDstPixmap = exaGetDrawablePixmap (pDstDrawable);
|
pDstPixmap = exaGetDrawablePixmap (pDstDrawable);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue