mesa/src
Henri Verbeet a4d72189b2 mesa: Also set the remaining draw buffers to GL_NONE when updating just the first buffer in _mesa_drawbuffers().
Without this we'd miss the last update in a sequence like {COLOR0, COLOR1},
{COLOR0}, {COLOR0, COLOR1}. I originally had a patch for this that called
updated_drawbuffers() when the buffer count changed, but later realized that
was wrong. The ARB_draw_buffers spec explicitly says "The draw buffer for
output colors beyond <n> is set to NONE.", and this is queryable state.
This fixes piglit arb_draw_buffers-state_change.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-09-25 15:00:21 +02:00
..
egl egl: add null platform 2011-09-20 17:44:15 +08:00
gallium postprocess: Portability fixes. 2011-09-25 12:18:55 +01:00
gbm gbm/dri: avoid crash in dri_screen_create 2011-08-04 14:09:34 +02:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glsl: Fix Android build 2011-09-24 19:37:13 -07:00
glu glu: Avoid defining conflicting DEBUG NDEBUG macros. 2011-08-30 09:42:01 +01:00
glx scons: MacOSX build fixes. 2011-09-20 20:41:57 +01:00
mapi glapi: Don't emit remap data for individual extensions 2011-09-19 12:02:21 -07:00
mesa mesa: Also set the remaining draw buffers to GL_NONE when updating just the first buffer in _mesa_drawbuffers(). 2011-09-25 15:00:21 +02:00
Makefile
SConscript scons: Unbreak mingw build. 2011-09-20 20:50:48 +01:00