Report damage before modifying the area, not after.
authorPeter Hutterer <peter@cs.unisa.edu.au>
Thu, 21 Aug 2008 09:22:40 +0000 (11:22 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 21 Aug 2008 09:22:40 +0000 (11:22 +0200)
commit3a94b25538c647df965a93cd7734b841257ef203
tree5ad065c705740ca3714eaad00a5725638cf73185
parent495c02262eaaa68f2df23c2265362da51851c57a
Report damage before modifying the area, not after.

If we copy the area before reporting the damage in this area, the server may
restore buffered data over the new data, leading to artefacts on the screen.
Reproducable with two cursors (second of which is SW rendered) and moving
windows around in compiz.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=16384 .
src/mesa/drivers/dri/common/dri_util.c