diff options
author | Keith Whitwell <[email protected]> | 2005-12-05 11:44:09 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-12-05 11:44:09 +0000 |
commit | b4ebb682027e42c1f6525d0f8cee9ccd41e15ca0 (patch) | |
tree | 9e0ab43e69bb51d901c24bf604593240ca562907 /src/mesa/tnl/t_vp_build.c | |
parent | f27c07c99e6d55be623710cf87b8995b8fb4af3f (diff) |
Add guard before calling ctx->Driver.BindProgram
Diffstat (limited to 'src/mesa/tnl/t_vp_build.c')
-rw-r--r-- | src/mesa/tnl/t_vp_build.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 2d42fafd88e..77e105115c8 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -1536,7 +1536,8 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx ) /* Tell the driver about the change. Could define a new target for * this? */ - if (ctx->VertexProgram._Current != prev) + if (ctx->VertexProgram._Current != prev && + ctx->Driver.BindProgram) ctx->Driver.BindProgram(ctx, GL_VERTEX_PROGRAM_ARB, (struct program *) ctx->VertexProgram._Current); } |