summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2000-07-20 15:54:06 +0000
committerKeith Whitwell <[email protected]>2000-07-20 15:54:06 +0000
commite1aaeb5a45709b2ef2a72d3f0cafa4dd94a952f6 (patch)
tree33fddce5841a78788f9127d183c5e399b71c7944
parent1ec0bef98efdd65f1070bb24db55faa0b36d8e8b (diff)
fix for eval regressionmesa_3_2_1
-rw-r--r--src/mesa/main/eval.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/main/eval.c b/src/mesa/main/eval.c
index 98add17c19d..a8358141f24 100644
--- a/src/mesa/main/eval.c
+++ b/src/mesa/main/eval.c
@@ -1,4 +1,4 @@
-/* $Id: eval.c,v 1.6.2.1 2000/07/17 12:49:56 keithw Exp $ */
+/* $Id: eval.c,v 1.6.2.2 2000/07/20 15:54:06 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -2617,14 +2617,15 @@ void gl_eval_vb( struct vertex_buffer *VB )
}
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];
}
}