mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Return early from xglFillRect when no rectangles should be filled
This commit is contained in:
@@ -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--)
|
||||
|
||||
Reference in New Issue
Block a user