initialize SWvertex array to zeros
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 Aug 2002 00:41:11 +0000 (00:41 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 Aug 2002 00:41:11 +0000 (00:41 +0000)
src/mesa/swrast_setup/ss_context.c

index 4b8c003c2e7e0e14ec6303714c4edc9977542066..6adcef9b75c1880cff5d909a4f8421380d483952 100644 (file)
@@ -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);