From 3faccc42adddf1312461ee74385c645aeb4ddb9a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 20 Jun 2013 08:41:19 -0700 Subject: [PATCH] i965: Stop flagging viewport/scissor change on drawbuffers change. The viewport (ctx->Viewport._WindowMap) doesn't change with drawable size changes, and we update scissor (ctx->DrawBuffer->_Xmin and friends) on _NEW_BUFFERS in things like brw_sf_state.c. Reviewed-by: Anuj Phogat Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vtbl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c index ba5fadf4f46..a47b7a33965 100644 --- a/src/mesa/drivers/dri/i965/brw_vtbl.c +++ b/src/mesa/drivers/dri/i965/brw_vtbl.c @@ -141,9 +141,6 @@ brw_update_draw_buffer(struct intel_context *intel) * renderbuffers' buffer objects. */ intel->NewGLState |= _NEW_BUFFERS; - - /* update viewport/scissor since it depends on window size */ - intel->NewGLState |= _NEW_VIEWPORT | _NEW_SCISSOR; } /** -- 2.30.2