summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-01 08:48:22 -0600
committerBrian Paul <[email protected]>2008-07-01 08:49:12 -0600
commit634d2af2b01f4e7ce8fa3ff65f64a446f859821a (patch)
tree96dc18d6b61cec91ec60f9642b4733186de25c88 /src/mesa
parentd3f7b463c3975c070503053e4ad70af99016a756 (diff)
init machine->Samplers (fixes vertex program texture fetches)
Diffstat (limited to 'src/mesa')
-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 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;
}