init machine->Samplers (fixes vertex program texture fetches)

This commit is contained in:
Brian Paul
2008-07-01 08:48:22 -06:00
parent d3f7b463c3
commit 634d2af2b0

View File

@@ -242,6 +242,8 @@ init_machine(GLcontext *ctx, struct gl_program_machine *machine)
machine->FetchTexelLod = vp_fetch_texel;
machine->FetchTexelDeriv = NULL; /* not used by vertex programs */
machine->Samplers = ctx->VertexProgram._Current->Base.SamplerUnits;
}