From 2a1abe3b46f6671610653059df00664a8b70399c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 8 Aug 2002 00:41:11 +0000 Subject: initialize SWvertex array to zeros --- src/mesa/swrast_setup/ss_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast_setup') diff --git a/src/mesa/swrast_setup/ss_context.c b/src/mesa/swrast_setup/ss_context.c index 4b8c003c2e..6adcef9b75 100644 --- a/src/mesa/swrast_setup/ss_context.c +++ b/src/mesa/swrast_setup/ss_context.c @@ -1,4 +1,4 @@ -/* $Id: ss_context.c,v 1.15 2001/07/17 19:39:32 keithw Exp $ */ +/* $Id: ss_context.c,v 1.16 2002/08/08 00:41:11 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -59,7 +59,7 @@ _swsetup_CreateContext( GLcontext *ctx ) if (!swsetup) return GL_FALSE; - swsetup->verts = (SWvertex *) ALIGN_MALLOC( sizeof(SWvertex) * tnl->vb.Size, + swsetup->verts = (SWvertex *) ALIGN_CALLOC( sizeof(SWvertex) * tnl->vb.Size, 32); if (!swsetup->verts) { FREE(swsetup); -- cgit v1.2.3