-/* $Id: eval.c,v 1.9 2000/07/17 12:53:33 keithw Exp $ */
+/* $Id: eval.c,v 1.10 2000/07/20 15:53:17 keithw Exp $ */
/*
* Mesa 3-D graphics library
}
if (all_eval) {
- for (i = 0 ; i < count ; i++)
+ for (i = 0 ; i <= count ; i++)
flags[i] = oldflags[i] | new_flags;
andflag |= new_flags;
} else {
andflag = ~0;
- for (i = 0 ; i < count ; i++) {
- if (oldflags[i] & VERT_EVAL_ANY)
- flags[i] = oldflags[i] | new_flags;
+ for (i = 0 ; i <= count ; i++) {
+ flags[i] = oldflags[i];
+ if (flags[i] & VERT_EVAL_ANY)
+ flags[i] |= new_flags;
andflag &= flags[i];
}
}