From 6d460af6af77a0d5a5b568bcd6094b98e249ba93 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 23 Apr 2004 14:16:46 +0000 Subject: 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. --- src/mesa/tnl/t_vb_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_vb_program.c') diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index a6c9bc8038..38b04b48f9 100644 --- a/src/mesa/tnl/t_vb_program.c +++ b/src/mesa/tnl/t_vb_program.c @@ -315,7 +315,7 @@ static GLboolean run_init_vp( GLcontext *ctx, */ static void check_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage ) { - stage->active = ctx->VertexProgram.Enabled; + stage->active = ctx->VertexProgram._Enabled; if (stage->active) { /* Set stage->inputs equal to the bitmask of vertex attributes -- cgit v1.2.3