summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-21 10:38:18 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-21 11:14:49 -0600
commit562c9410630c7faeb3b04bd8b4fa8d29c9193eaa (patch)
treee620c61c04ab356ec7896eff465c8691c231077f
parentae58f38feebed6c468a20d3ae45fbf83b6e3b457 (diff)
fix 1/i typos
-rw-r--r--src/mesa/state_tracker/st_atom_vs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_vs.c b/src/mesa/state_tracker/st_atom_vs.c
index b09f2bece7..dcd3564252 100644
--- a/src/mesa/state_tracker/st_atom_vs.c
+++ b/src/mesa/state_tracker/st_atom_vs.c
@@ -100,7 +100,7 @@ st_translate_vertex_shader(struct st_context *st,
case VERT_ATTRIB_TEX6:
case VERT_ATTRIB_TEX7:
vs.input_semantic_name[vs.num_inputs] = TGSI_SEMANTIC_TEXCOORD;
- vs.input_semantic_index[vs.num_inputs] = 1 - VERT_ATTRIB_TEX0;
+ vs.input_semantic_index[vs.num_inputs] = i - VERT_ATTRIB_TEX0;
break;
case VERT_ATTRIB_GENERIC0:
case VERT_ATTRIB_GENERIC1:
@@ -112,7 +112,7 @@ st_translate_vertex_shader(struct st_context *st,
case VERT_ATTRIB_GENERIC7:
assert(i < VERT_ATTRIB_MAX);
vs.input_semantic_name[vs.num_inputs] = TGSI_SEMANTIC_GENERIC;
- vs.input_semantic_index[vs.num_inputs] = 1 - VERT_ATTRIB_GENERIC0;
+ vs.input_semantic_index[vs.num_inputs] = i - VERT_ATTRIB_GENERIC0;
break;
default:
assert(0);