summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vb_program.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-01 08:48:22 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-01 08:49:12 -0600
commit634d2af2b01f4e7ce8fa3ff65f64a446f859821a (patch)
tree96dc18d6b61cec91ec60f9642b4733186de25c88 /src/mesa/tnl/t_vb_program.c
parentd3f7b463c3975c070503053e4ad70af99016a756 (diff)
init machine->Samplers (fixes vertex program texture fetches)
Diffstat (limited to 'src/mesa/tnl/t_vb_program.c')
-rw-r--r--src/mesa/tnl/t_vb_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c
index addaf76127..f99401ca6d 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;
}