xserver/hw/xgl xglfill.c,1.3,1.4
David Reveman
xserver-commit at pdx.freedesktop.org
Fri Mar 11 04:26:22 PST 2005
Committed by: davidr
Update of /cvs/xserver/xserver/hw/xgl
In directory gabe:/tmp/cvs-serv17323/hw/xgl
Modified Files:
xglfill.c
Log Message:
Return early from xglFillRect when no rectangles should be filled
Index: xglfill.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xgl/xglfill.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xglfill.c 26 Jan 2005 10:58:52 -0000 1.3
+++ xglfill.c 11 Mar 2005 12:26:20 -0000 1.4
@@ -178,6 +178,9 @@
}
}
+ if (!nBox)
+ return;
+
pBox = (heapBox) ? heapBox : stackBox;
if (!xglFill (pDrawable, pGC, NULL,
@@ -206,7 +209,7 @@
FatalError (XGL_SW_FAILURE_STRING);
break;
}
-
+
REGION_INIT (pGC->pScreen, ®ion, pBox, nBox);
while (nBox--)
More information about the xserver-commit
mailing list