Lines Matching refs:newProg
52 struct gl_program *curProg, *newProg; in _mesa_BindProgramARB() local
75 newProg = NULL; in _mesa_BindProgramARB()
77 newProg = ctx->Shared->DefaultVertexProgram; in _mesa_BindProgramARB()
79 newProg = ctx->Shared->DefaultFragmentProgram; in _mesa_BindProgramARB()
83 newProg = _mesa_lookup_program(ctx, id); in _mesa_BindProgramARB()
84 if (!newProg || newProg == &_mesa_DummyProgram) { in _mesa_BindProgramARB()
86 newProg = ctx->Driver.NewProgram(ctx, target, id, true); in _mesa_BindProgramARB()
87 if (!newProg) { in _mesa_BindProgramARB()
91 _mesa_HashInsert(ctx->Shared->Programs, id, newProg); in _mesa_BindProgramARB()
93 else if (newProg->Target != target) { in _mesa_BindProgramARB()
112 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, newProg); in _mesa_BindProgramARB()
115 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, newProg); in _mesa_BindProgramARB()
123 ctx->Driver.BindProgram(ctx, target, newProg); in _mesa_BindProgramARB()