summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-06-07 17:42:03 -0700
committerEric Anholt <[email protected]>2010-06-08 13:42:02 -0700
commitbcf63dbbd8fd31b724294b34a62a0e6c565dce87 (patch)
treec0d3c67874812857d58cca71d76e2ab3a7526b73 /src/mesa/drivers
parentdf3c1a563f3d76b07ab82c7b230b0030452f36ff (diff)
intel: Flag NEW_BUFFERS when changing draw buffers.
There were entries to this function (most imporantly, prepare_render -> update_renderbuffers) that wouldn't have had NEW_BUFFERS set, but brw_wm_surface_state (the i965 state tracking the drawing regions) expected this to change.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c
index 0480770ba1d..1bff344a456 100644
--- a/src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/src/mesa/drivers/dri/intel/intel_buffers.c
@@ -231,6 +231,7 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
intel->vtbl.set_draw_region(intel, colorRegions, depthRegion,
fb->_NumColorDrawBuffers);
+ intel->NewGLState |= _NEW_BUFFERS;
/* update viewport since it depends on window size */
#ifdef I915