summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-07-13 16:39:19 +0000
committerBrian Paul <[email protected]>2001-07-13 16:39:19 +0000
commitcff1cfd90d94548c7b9499ffcac5bd13ca338f85 (patch)
tree1e9f477d771356458c6fc8ed310f6bbf1479a2b2 /src/mesa/tnl
parent5c749d9e3c7824c0ba5b22e37d0ea5cbd54d6d2d (diff)
silence an uninitialized var warning
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_imm_dlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c
index 9c22ed3e7b7..3cfdf1e5155 100644
--- 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.21 2001/06/28 17:34:14 keithw Exp $ */
+/* $Id: t_imm_dlist.c,v 1.22 2001/07/13 16:39:19 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -96,7 +96,7 @@ static void build_normal_lengths( struct immediate *IM )
static void fixup_normal_lengths( struct immediate *IM )
{
GLuint i;
- GLfloat len;
+ GLfloat len = 1.0; /* just to silence warnings */
GLfloat (*data)[3] = IM->Normal;
GLfloat *dest = IM->NormalLengthPtr;
GLuint *flags = IM->Flag;