diff options
author | Pauli Nieminen <[email protected]> | 2009-07-29 01:28:33 +0300 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2009-07-31 21:44:31 +0200 |
commit | 55bc8b139067f2596da654075a4fc6e5940e22dd (patch) | |
tree | 0ca2c63a812b94c30e18e49720c0ef98faea695f /src/mesa/drivers/dri/radeon | |
parent | 1fcb321e2fa1903b815b099e59bd85aac823850a (diff) |
radeon: Cliprects has to be updated before doing anything with clip rectangles
Reported to fix corruption while dragging an active window by John Bridgman.
Signed-off-by: Pauli Nieminen <[email protected]>
Signed-off-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c index dde615a4d9d..7f503a9ff71 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.c +++ b/src/mesa/drivers/dri/radeon/radeon_common.c @@ -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) |