diff options
author | Brian Paul <[email protected]> | 2011-11-26 08:54:57 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-11-28 08:13:04 -0700 |
commit | e68994494b159d4f44e34b6b6c1d489a184a2dfe (patch) | |
tree | bc092393a00569f4749217696a6c6c98c56bc94c /src/mesa/main/state.c | |
parent | 56b870e44106188f425df6eb45b7a394f0420e5e (diff) |
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 <[email protected]>
Tested-by: Eric Anholt <[email protected]> (i965)
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 80fd03b919d..bed6c898dc3 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -589,7 +589,7 @@ _mesa_update_state_locked( struct gl_context *ctx ) if (ctx->FragmentProgram._MaintainTexEnvProgram) { prog_flags |= (_NEW_BUFFERS | _NEW_TEXTURE | _NEW_FOG | _NEW_ARRAY | _NEW_LIGHT | _NEW_POINT | _NEW_RENDERMODE | - _NEW_PROGRAM | _NEW_FRAG_CLAMP); + _NEW_PROGRAM | _NEW_FRAG_CLAMP | _NEW_COLOR); } if (ctx->VertexProgram._MaintainTnlProgram) { prog_flags |= (_NEW_ARRAY | _NEW_TEXTURE | _NEW_TEXTURE_MATRIX | |