projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46af1f8
)
Fix core in fixup_normal_lengths
author
Keith Whitwell
<keith@tungstengraphics.com>
Sat, 28 Jul 2001 21:04:21 +0000
(21:04 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Sat, 28 Jul 2001 21:04:21 +0000
(21:04 +0000)
src/mesa/tnl/t_imm_dlist.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_imm_dlist.c
b/src/mesa/tnl/t_imm_dlist.c
index 4a055b2d87b399e524194c98c65da3a9f3ed33a6..b2b7f90c49556105e956583efe73ee52485231fa 100644
(file)
--- a/
src/mesa/tnl/t_imm_dlist.c
+++ b/
src/mesa/tnl/t_imm_dlist.c
@@
-1,4
+1,4
@@
-/* $Id: t_imm_dlist.c,v 1.2
6 2001/07/27 19:09:58 brianp
Exp $ */
+/* $Id: t_imm_dlist.c,v 1.2
7 2001/07/28 21:04:21 keithw
Exp $ */
/*
* Mesa 3-D graphics library
@@
-107,9
+107,11
@@
static void fixup_normal_lengths( struct immediate *IM )
dest[i] = len;
}
- while (!(flags[i] & (VERT_NORM|VERT_END_VB))) {
- dest[i] = len;
- i++;
+ if (i < IM->Count) {
+ while (!(flags[i] & (VERT_NORM|VERT_END_VB))) {
+ dest[i] = len;
+ i++;
+ }
}
}