projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f7b46
)
init machine->Samplers (fixes vertex program texture fetches)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 14:48:22 +0000
(08:48 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 1 Jul 2008 14:49:12 +0000
(08:49 -0600)
src/mesa/tnl/t_vb_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vb_program.c
b/src/mesa/tnl/t_vb_program.c
index addaf761273076eb6ef0f47df552518de476059a..f99401ca6d870f09657ae26c72d4afb82fe7ce1b 100644
(file)
--- 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;
}