summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_imm_alloc.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-06-28 17:34:14 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-06-28 17:34:14 +0000
commit47a28c0b4d4ca27592e3cbb8e4b17d1cd8f7997d (patch)
tree0fdce5799b53ba8efcb3b30190fa746123cbee3e /src/mesa/tnl/t_imm_alloc.c
parent206eda8b69ab3c63e9597015189f49d1bda9356f (diff)
restore normal length optimization in dlists
Diffstat (limited to 'src/mesa/tnl/t_imm_alloc.c')
-rw-r--r--src/mesa/tnl/t_imm_alloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_imm_alloc.c b/src/mesa/tnl/t_imm_alloc.c
index 22bdb7a7bb..5cf0d1ea14 100644
--- a/src/mesa/tnl/t_imm_alloc.c
+++ b/src/mesa/tnl/t_imm_alloc.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_alloc.c,v 1.8 2001/05/09 13:53:36 keithw Exp $ */
+/* $Id: t_imm_alloc.c,v 1.9 2001/06/28 17:34:14 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -57,6 +57,7 @@ static struct immediate *real_alloc_immediate( GLcontext *ctx )
IM->MaterialMask = 0;
IM->MaxTextureUnits = ctx->Const.MaxTextureUnits;
IM->TexSize = 0;
+ IM->NormalLengthPtr = 0;
IM->CopyTexSize = 0;
IM->CopyStart = IM->Start;
@@ -96,6 +97,8 @@ static void real_free_immediate( struct immediate *IM )
for (j = 1; j < IM->MaxTextureUnits; j++)
ALIGN_FREE( IM->TexCoord[j] );
+ if (IM->NormalLengthPtr)
+ ALIGN_FREE( IM->NormalLengthPtr );
ALIGN_FREE( IM );
freed++;