init machine->Samplers (fixes vertex program texture fetches)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user