diff options
author | Henri Verbeet <[email protected]> | 2011-09-22 23:46:34 +0200 |
---|---|---|
committer | Henri Verbeet <[email protected]> | 2011-09-25 15:00:21 +0200 |
commit | a4d72189b271664501338cc93107845f3d40ae54 (patch) | |
tree | 7a30472fd849093a41b41f8dd9cb0a3786388543 /src/gallium/auxiliary/rbug/rbug.h | |
parent | 4703f50e96fe3a9db039f59e154e15c06c3f8367 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/rbug/rbug.h')
0 files changed, 0 insertions, 0 deletions