summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-17 12:42:29 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-17 12:42:29 -0600
commit7392dac9621ae2e87485d24d17845558a165519d (patch)
treed95c063c47e0c73195369841d26026cee2c6879b /src/mesa/tnl
parent38743e2ef1091304a7059c04c157fde80bd977ec (diff)
When in GL_FEEDBACK mode, make sure we emit color and texcoord registers.
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vp_build.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c
index 2c0883d0b0..cbffed5155 100644
--- 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);