Mesa (gallium-0.2): dri: don't check the number of cliprects before swap, let

Alan Hourihane alanh at kemper.freedesktop.org
Tue Oct 14 10:55:44 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 5d4f3b841753e16fbb33e444b6a787663e54fce5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d4f3b841753e16fbb33e444b6a787663e54fce5

Author: Alan Hourihane <alanh at tungstengraphics.com>
Date:   Tue Oct 14 11:54:20 2008 +0100

dri: don't check the number of cliprects before swap, let
     the swap handle the requirements.

---

 src/mesa/drivers/dri/common/dri_util.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index ceedd91..a16cb50 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -315,9 +315,6 @@ static void driSwapBuffers(__DRIdrawable *dPriv)
 {
     __DRIscreen *psp = dPriv->driScreenPriv;
 
-    if (!dPriv->numClipRects)
-        return;
-
     psp->DriverAPI.SwapBuffers(dPriv);
 
     driReportDamage(dPriv, dPriv->pClipRects, dPriv->numClipRects);




More information about the mesa-commit mailing list