radeon: Cliprects has to be updated before doing anything with clip rectangles
authorPauli Nieminen <suokkos@gmail.com>
Tue, 28 Jul 2009 22:28:33 +0000 (01:28 +0300)
committerNicolai Hähnle <nhaehnle@gmail.com>
Fri, 31 Jul 2009 19:44:31 +0000 (21:44 +0200)
Reported to fix corruption while dragging an active window by John Bridgman.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/radeon/radeon_common.c

index dde615a..7f503a9 100644 (file)
@@ -887,10 +887,11 @@ void radeonUpdatePageFlipping(radeonContextPtr radeon)
 
 void radeon_window_moved(radeonContextPtr radeon)
 {
+       /* Cliprects has to be updated before doing anything else */
+       radeonSetCliprects(radeon);
        if (!radeon->radeonScreen->driScreen->dri2.enabled) {
                radeonUpdatePageFlipping(radeon);
        }
-       radeonSetCliprects(radeon);
 }
 
 void radeon_viewport(GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height)