summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAndre Maasikas <[email protected]>2011-01-18 16:05:45 +0200
committerAndre Maasikas <[email protected]>2011-01-18 16:25:19 +0200
commit4ef3e261a4dbe81c1ca73dbf83d45edf332c8d68 (patch)
treeae5cb5cc83a352b5f658316757657f7680a3d28f /src/mesa
parent0a85845c9ee42c0da4ee031d21d66e888c00e764 (diff)
r600c: preserve correct buffer when using fbo
Hopefully better than previous - this passes more mipgen tests
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common_context.c2
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 a1124483a6c..819d9dd5750 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;
}