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.
This commit is contained in:
Eric Anholt 2010-06-07 17:42:03 -07:00
parent df3c1a563f
commit bcf63dbbd8
1 changed files with 1 additions and 0 deletions

View File

@ -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