Report correct damage rectangle in CopySubBuffer.
authorDennis Kasprzyk <onestone@opencompositing.org>
Thu, 29 May 2008 09:24:16 +0000 (11:24 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 29 May 2008 09:24:16 +0000 (11:24 +0200)
src/mesa/drivers/dri/common/dri_util.c

index 58702089e5f291452b4fafb7ef8a0b09f2d6c332..daa3fc581496eafff2c224d99b5a2e4d6c336902 100644 (file)
@@ -510,9 +510,9 @@ static void driCopySubBuffer(__DRIdrawable *dPriv,
     dPriv->driScreenPriv->DriverAPI.CopySubBuffer(dPriv, x, y, w, h);
 
     rect.x1 = x;
-    rect.y1 = y;
+    rect.y1 = dPriv->h - y - h;
     rect.x2 = x + w;
-    rect.y2 = y + w;
+    rect.y2 = rect.y1 + h;
     driReportDamage(dPriv, &rect, 1);
 }