[Mesa-dev] [PATCH 10/11] i965: Stop updating FBO state on drawbuffers change.
Eric Anholt
eric at anholt.net
Thu Jun 20 23:08:03 PDT 2013
The computed fields are updated appropriately as part of the normal draw
call path due to _NEW_BUFFERS being set.
---
src/mesa/drivers/dri/i965/brw_vtbl.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c
index 4bf1ba9..16d1bd1 100644
--- a/src/mesa/drivers/dri/i965/brw_vtbl.c
+++ b/src/mesa/drivers/dri/i965/brw_vtbl.c
@@ -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.
--
1.8.3.rc0
More information about the mesa-dev
mailing list