Return early from xglFillRect when no rectangles should be filled
This commit is contained in:
parent
4de5aa4285
commit
816606b9ea
|
@ -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, ®ion, pBox, nBox);
|
||||
|
||||
while (nBox--)
|
||||
|
|
Loading…
Reference in New Issue