From: Brian Paul Date: Tue, 1 Jul 2008 14:48:22 +0000 (-0600) Subject: init machine->Samplers (fixes vertex program texture fetches) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=634d2af2b01f4e7ce8fa3ff65f64a446f859821a;p=mesa.git init machine->Samplers (fixes vertex program texture fetches) --- 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; }