texenv: Calculate whether we need to do secondary color on our own.
authorEric Anholt <eric@anholt.net>
Fri, 17 Jul 2009 01:41:03 +0000 (18:41 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 17 Jul 2009 02:02:04 +0000 (19:02 -0700)
commit9cea84b6b5f96bf3bb42546e49b76024d7126e30
tree687e9f7f919ea90b745d7d1e63d4837d8f7f253c
parent99174e7630676307f618c252755a20ba61ad9158
texenv: Calculate whether we need to do secondary color on our own.

The _TriangleCaps bit is deprecated, not updated when we require, and
is set based on state that hasn't been updated at that point in
_mesa_update_state_locked().

Fixes incorrect clear color in glsl/twoside.c with meta_clear_tris.
src/mesa/main/state.c
src/mesa/main/texenvprogram.c