diff --git a/hw/xgl/xglfill.c b/hw/xgl/xglfill.c index 7832df27e..573484782 100644 --- a/hw/xgl/xglfill.c +++ b/hw/xgl/xglfill.c @@ -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--)