summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-08-08 16:55:17 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-08-08 16:55:17 +0000
commit352c13f7835918c3d2cb07f8e7dbe33e8319fcab (patch)
tree9d8955936b193e4abe6be64b1abcd4d5c24e83c8 /src/mesa
parentebe671cfad0cdf185255b4a98b9ae561e6aa77b2 (diff)
init tmp->Normal.size = 3
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_imm_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_imm_exec.c b/src/mesa/tnl/t_imm_exec.c
index 02643ce867..137c7ec514 100644
--- a/src/mesa/tnl/t_imm_exec.c
+++ b/src/mesa/tnl/t_imm_exec.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_exec.c,v 1.41 2002/06/15 02:38:18 brianp Exp $ */
+/* $Id: t_imm_exec.c,v 1.42 2002/08/08 16:55:17 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -295,6 +295,7 @@ static void _tnl_vb_bind_immediate( GLcontext *ctx, struct immediate *IM )
tmp->Normal.data = IM->Attrib[VERT_ATTRIB_NORMAL] + start;
tmp->Normal.start = (GLfloat *) (IM->Attrib[VERT_ATTRIB_NORMAL] + start);
tmp->Normal.count = count;
+ tmp->Normal.size = 3; /* just to be safe */
VB->NormalPtr = &tmp->Normal;
if (IM->NormalLengthPtr)
VB->NormalLengthPtr = IM->NormalLengthPtr + start;