From 634d2af2b01f4e7ce8fa3ff65f64a446f859821a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 1 Jul 2008 08:48:22 -0600 Subject: init machine->Samplers (fixes vertex program texture fetches) --- src/mesa/tnl/t_vb_program.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/tnl') diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c index addaf761273..f99401ca6d8 100644 --- a/src/mesa/tnl/t_vb_program.c +++ b/src/mesa/tnl/t_vb_program.c @@ -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; } -- cgit v1.2.3