From bcf63dbbd8fd31b724294b34a62a0e6c565dce87 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 7 Jun 2010 17:42:03 -0700 Subject: 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. --- src/mesa/drivers/dri/intel/intel_buffers.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3