i965: Stop updating FBO state on drawbuffers change.
authorEric Anholt <eric@anholt.net>
Thu, 20 Jun 2013 16:50:58 +0000 (09:50 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 02:19:22 +0000 (19:19 -0700)
The computed fields are updated appropriately as part of the normal draw
call path due to _NEW_BUFFERS being set.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vtbl.c

index 4bf1ba93cd16f5e0292dd71241b1b28ee7e9daa6..16d1bd1a8336341a4271012f641b13579581cf4a 100644 (file)
@@ -112,14 +112,6 @@ brw_update_draw_buffer(struct intel_context *intel)
       return;
    }
 
-   /* Do this here, not core Mesa, since this function is called from
-    * many places within the driver.
-    */
-   if (ctx->NewState & _NEW_BUFFERS) {
-      /* this updates the DrawBuffer->_NumColorDrawBuffers fields, etc */
-      _mesa_update_framebuffer(ctx);
-   }
-
    if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {
       /* this may occur when we're called by glBindFrameBuffer() during
        * the process of someone setting up renderbuffers, etc.