r600c: preserve correct buffer when using fbo
authorAndre Maasikas <amaasikas@gmail.com>
Tue, 18 Jan 2011 14:05:45 +0000 (16:05 +0200)
committerAndre Maasikas <amaasikas@gmail.com>
Tue, 18 Jan 2011 14:25:19 +0000 (16:25 +0200)
Hopefully better than previous - this passes more mipgen tests

src/mesa/drivers/dri/radeon/radeon_common_context.c

index a1124483a6cba4e9286a182beafcfd6218940604..819d9dd5750fc1a61669097cdf97b9800044d910 100644 (file)
@@ -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;
     }