diff options
author | Brian Paul <[email protected]> | 2002-01-10 15:50:12 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-01-10 15:50:12 +0000 |
commit | 2e99cbd9539cf686a45ffdfb9ec6c6a88e3aaa47 (patch) | |
tree | 7f3142d94f942c9a4c07c077b89f48b03d33712f /src/mesa/tnl/t_imm_alloc.c | |
parent | 26c878ac16da0e3cc535e810d66438b62e6259a1 (diff) |
init whole immediate struct to zero
Diffstat (limited to 'src/mesa/tnl/t_imm_alloc.c')
-rw-r--r-- | src/mesa/tnl/t_imm_alloc.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mesa/tnl/t_imm_alloc.c b/src/mesa/tnl/t_imm_alloc.c index 38525375996..1518331c4a1 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.13 2002/01/05 20:51:13 brianp Exp $ */ +/* $Id: t_imm_alloc.c,v 1.14 2002/01/10 15:50:12 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -38,7 +38,7 @@ static int id = 0; /* give each struct immediate a unique ID number */ static struct immediate *real_alloc_immediate( GLcontext *ctx ) { - struct immediate *IM = ALIGN_MALLOC_STRUCT( immediate, 32 ); + struct immediate *IM = ALIGN_CALLOC_STRUCT( immediate, 32 ); if (!IM) return 0; @@ -61,15 +61,6 @@ static struct immediate *real_alloc_immediate( GLcontext *ctx ) IM->CopyTexSize = 0; IM->CopyStart = IM->Start; - /* KW: Removed initialization of normals as these are now treated - * identically to all other data types. - */ - - MEMSET(IM->Flag, 0, sizeof(IM->Flag)); -#if 0 - MEMSET(IM->Normal, 0.0 , sizeof(IM->Normal)); -#endif - return IM; } |