Added ctx->Vertex/FragmentProgram._Enable flags. Set when vertex/fragment
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Apr 2004 14:16:46 +0000 (14:16 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 23 Apr 2004 14:16:46 +0000 (14:16 +0000)
commit6d460af6af77a0d5a5b568bcd6094b98e249ba93
tree08656028582b357d5c9730c521cc3e1770604c50
parent384800fe12e368f3489111de4572dbc8846a7dea
Added ctx->Vertex/FragmentProgram._Enable flags.  Set when vertex/fragment
program is enabled AND the currently bound program is valid.
Check _Enable instead of Enable to prevent things from blowing up
when someone calls glEnable(GL_VERTEX_PROGRAM_ARB) without actually
defining a program.
27 files changed:
src/mesa/array_cache/ac_import.c
src/mesa/main/api_noop.c
src/mesa/main/api_validate.c
src/mesa/main/context.h
src/mesa/main/drawpix.c
src/mesa/main/mtypes.h
src/mesa/main/rastpos.c
src/mesa/main/state.c
src/mesa/main/texstate.c
src/mesa/shader/program.c
src/mesa/swrast/s_context.c
src/mesa/swrast/s_span.c
src/mesa/swrast/s_triangle.c
src/mesa/swrast_setup/ss_triangle.c
src/mesa/tnl/t_array_import.c
src/mesa/tnl/t_context.c
src/mesa/tnl/t_save_playback.c
src/mesa/tnl/t_vb_fog.c
src/mesa/tnl/t_vb_light.c
src/mesa/tnl/t_vb_normals.c
src/mesa/tnl/t_vb_points.c
src/mesa/tnl/t_vb_program.c
src/mesa/tnl/t_vb_texgen.c
src/mesa/tnl/t_vb_texmat.c
src/mesa/tnl/t_vb_vertex.c
src/mesa/tnl/t_vtx_api.c
src/mesa/tnl/t_vtx_eval.c