dri: don't check the number of cliprects before swap, let
authorAlan Hourihane <alanh@tungstengraphics.com>
Tue, 14 Oct 2008 10:54:20 +0000 (11:54 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Tue, 14 Oct 2008 10:55:38 +0000 (11:55 +0100)
     the swap handle the requirements.

src/mesa/drivers/dri/common/dri_util.c

index ceedd914fb3fa52a1b7dbda5c4b3056279c73cdc..a16cb504c73d28165fbc91f6b65398fe33f3f1aa 100644 (file)
@@ -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);