summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorDennis Kasprzyk <[email protected]>2008-05-29 11:24:16 +0200
committerMichel Dänzer <[email protected]>2008-05-29 11:24:16 +0200
commit377016d728ace47c9eeb3ac2f01191608ab060f6 (patch)
tree6ff26989fb3e7a32b773faeb92e7b2a80b8252fc /src/mesa/drivers
parent74a217fbcd8ea05dc97eda06eb0b46e35979579d (diff)
Report correct damage rectangle in CopySubBuffer.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c4
1 files changed, 2 insertions, 2 deletions
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);
}