projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38743e2
)
When in GL_FEEDBACK mode, make sure we emit color and texcoord registers.
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 18:42:29 +0000
(12:42 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 17 Oct 2007 18:42:29 +0000
(12:42 -0600)
src/mesa/tnl/t_vp_build.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vp_build.c
b/src/mesa/tnl/t_vp_build.c
index 2c0883d0b094925b2934238c1ad94ad8de1a286d..cbffed5155d67b2a578b2b501057d62419a6a786 100644
(file)
--- a/
src/mesa/tnl/t_vp_build.c
+++ b/
src/mesa/tnl/t_vp_build.c
@@
-135,6
+135,11
@@
static struct state_key *make_state_key( GLcontext *ctx )
key->fragprog_inputs_read = fp->Base.InputsRead;
+ if (ctx->RenderMode == GL_FEEDBACK) {
+ /* make sure the vertprog emits color and tex0 */
+ key->fragprog_inputs_read |= (FRAG_BIT_COL0 | FRAG_BIT_TEX0);
+ }
+
key->separate_specular = (ctx->Light.Model.ColorControl ==
GL_SEPARATE_SPECULAR_COLOR);