diff options
author | Eric Anholt <[email protected]> | 2010-06-07 17:42:03 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-08 13:42:02 -0700 |
commit | bcf63dbbd8fd31b724294b34a62a0e6c565dce87 (patch) | |
tree | c0d3c67874812857d58cca71d76e2ab3a7526b73 /src/mesa/drivers/dri/intel | |
parent | df3c1a563f3d76b07ab82c7b230b0030452f36ff (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/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_buffers.c | 1 |
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 |