mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 08:08:06 +02:00
Return early from xglFillRect when no rectangles should be filled
This commit is contained in:
parent
4de5aa4285
commit
816606b9ea
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue