Return early from xglFillRect when no rectangles should be filled

This commit is contained in:
David Reveman 2005-03-11 12:26:20 +00:00
parent 4de5aa4285
commit 816606b9ea

View File

@ -178,6 +178,9 @@ xglFillRect (DrawablePtr pDrawable,
}
}
if (!nBox)
return;
pBox = (heapBox) ? heapBox : stackBox;
if (!xglFill (pDrawable, pGC, NULL,
@ -206,7 +209,7 @@ xglFillRect (DrawablePtr pDrawable,
FatalError (XGL_SW_FAILURE_STRING);
break;
}
REGION_INIT (pGC->pScreen, &region, pBox, nBox);
while (nBox--)