OSDN Git Service

mesa: Make sure _TexEnvProgram points at the current ff fragment program
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2012 01:23:51 +0000 (17:23 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 28 Jan 2012 02:02:42 +0000 (18:02 -0800)
commit05b7f13af191e6fdf640e97017b073684550159b
tree500359a13193c0148529748a3f6dc1718caad0c7
parent93d5799e8bf8bb67d985d59cccf1063dedd3cedd
mesa: Make sure _TexEnvProgram points at the current ff fragment program

At least one place, the _mesa_need_secondary_color function in
state.h, uses this to make decisions.  The next patch in this series
will add another dependency.  Ideally, this field would go away and be
replace by a flag or something.

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 34db7a8c1e775aaefad7952133e087f1c1a569f6)
src/mesa/main/state.c