summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-09-21 11:34:20 -0600
committerBrian <[email protected]>2007-09-21 11:34:20 -0600
commit1ce50d8bd9a3bc64552c55a235a947de9e6f776c (patch)
tree09253b054454328e184f4429f2842e9b1ae658ac /src/mesa
parent11996050883ade4439a4a1e3192a02ba6f6aaa14 (diff)
use VERT_ATTRIB_MAX for loop limit
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_atom_vs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_vs.c b/src/mesa/state_tracker/st_atom_vs.c
index ef3ed802d76..e4e9902e653 100644
--- a/src/mesa/state_tracker/st_atom_vs.c
+++ b/src/mesa/state_tracker/st_atom_vs.c
@@ -67,7 +67,7 @@ st_translate_vertex_shader(struct st_context *st,
* Determine number of inputs, the mappings between VERT_ATTRIB_x
* and TGSI generic input indexes, plus input attrib semantic info.
*/
- for (attr = 0; attr < MAX_VERTEX_PROGRAM_ATTRIBS; attr++) {
+ for (attr = 0; attr < VERT_ATTRIB_MAX; attr++) {
if (stvp->Base.Base.InputsRead & (1 << attr)) {
stvp->input_to_index[attr] = vs.num_inputs;
stvp->index_to_input[vs.num_inputs] = attr;