Mesa (master): r600c: preserve correct buffer when using fbo

Andre Maasikas andrem at kemper.freedesktop.org
Tue Jan 18 14:31:31 UTC 2011


Module: Mesa
Branch: master
Commit: 4ef3e261a4dbe81c1ca73dbf83d45edf332c8d68
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ef3e261a4dbe81c1ca73dbf83d45edf332c8d68

Author: Andre Maasikas <amaasikas at gmail.com>
Date:   Tue Jan 18 16:05:45 2011 +0200

r600c: preserve correct buffer when using fbo

Hopefully better than previous - this passes more mipgen tests

---

 .../drivers/dri/radeon/radeon_common_context.c     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index a112448..819d9dd 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -532,7 +532,7 @@ void radeon_prepare_render(radeonContextPtr radeon)
 
 	/* Intel driver does the equivalent of this, no clue if it is needed:*/
 	draw = drawable->driverPrivate;
-	radeon_draw_buffer(radeon->glCtx, &draw->base);
+	radeon_draw_buffer(radeon->glCtx, radeon->glCtx->DrawBuffer);
 
 	driContext->dri2.draw_stamp = drawable->dri2.stamp;
     }




More information about the mesa-commit mailing list