mesa: fix frag shader generation for alpha test with no color buffers
authorBrian Paul <brianp@vmware.com>
Sat, 26 Nov 2011 15:54:57 +0000 (08:54 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 28 Nov 2011 15:13:04 +0000 (08:13 -0700)
commite68994494b159d4f44e34b6b6c1d489a184a2dfe
treebc092393a00569f4749217696a6c6c98c56bc94c
parent56b870e44106188f425df6eb45b7a394f0420e5e
mesa: fix frag shader generation for alpha test with no color buffers

If alpha test is enabled and there's no color buffers we still need the
fragment shader to emit a color.

v2: add _NEW_COLOR flag in _mesa_update_state_locked()

Fixes piglit fbo-alphatest-nocolor-ff failures with Gallium drivers.

Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Eric Anholt <eric@anholt.net> (i965)
src/mesa/main/ff_fragment_shader.cpp
src/mesa/main/state.c