Lines Matching refs:ctx
41 void _tnl_UpdateFixedFunctionProgram( struct gl_context *ctx )
43 const struct gl_program *prev = ctx->VertexProgram._Current;
45 if (!ctx->VertexProgram._Current ||
46 ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) {
47 ctx->VertexProgram._Current
48 = ctx->VertexProgram._TnlProgram
49 = _mesa_get_fixed_func_vertex_program(ctx);
55 if (ctx->VertexProgram._Current != prev && ctx->Driver.BindProgram) {
56 ctx->Driver.BindProgram(ctx, GL_VERTEX_PROGRAM_ARB,
57 ctx->VertexProgram._Current);