summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2000-07-20 15:53:17 +0000
committerKeith Whitwell <[email protected]>2000-07-20 15:53:17 +0000
commitcc70e78d65832ad532766d091e502bca3d56f31a (patch)
tree6129ae606cdf98e23c62e585f9586be373e95fb6
parentcf89b89be8f6d9f00b8dd571ad0b80af1b7c12a1 (diff)
fix for eval regression
-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 14055de6f8c..ce9243eeccd 100644
--- a/src/mesa/main/eval.c
+++ b/src/mesa/main/eval.c
@@ -1,4 +1,4 @@
-/* $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
@@ -2607,14 +2607,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];
}
}