Browse Source

Add guard before calling ctx->Driver.BindProgram

tags/mesa_20060201
Keith Whitwell 20 years ago
parent
commit
b4ebb68202
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/mesa/tnl/t_vp_build.c

+ 2
- 1
src/mesa/tnl/t_vp_build.c View File

@@ -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);
}

Loading…
Cancel
Save