OSDN Git Service

init machine->Samplers (fixes vertex program texture fetches)
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 14:48:22 +0000 (08:48 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 14:49:12 +0000 (08:49 -0600)
src/mesa/tnl/t_vb_program.c

index addaf76..f99401c 100644 (file)
@@ -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;
 }