From: Dennis Kasprzyk Date: Thu, 29 May 2008 09:24:16 +0000 (+0200) Subject: Report correct damage rectangle in CopySubBuffer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=377016d728ace47c9eeb3ac2f01191608ab060f6;p=mesa.git Report correct damage rectangle in CopySubBuffer. --- diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 58702089e5f..daa3fc58149 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -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); }