init machine->Samplers (fixes vertex program texture fetches)
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 14:48:22 +0000 (08:48 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 14:49:12 +0000 (08:49 -0600)
src/mesa/tnl/t_vb_program.c

index addaf761273076eb6ef0f47df552518de476059a..f99401ca6d870f09657ae26c72d4afb82fe7ce1b 100644 (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;
 }