diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-01 08:48:22 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-07-01 08:49:12 -0600 |
commit | 634d2af2b01f4e7ce8fa3ff65f64a446f859821a (patch) | |
tree | 96dc18d6b61cec91ec60f9642b4733186de25c88 | |
parent | d3f7b463c3975c070503053e4ad70af99016a756 (diff) |
init machine->Samplers (fixes vertex program texture fetches)
-rw-r--r-- | src/mesa/tnl/t_vb_program.c | 2 |
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; } |