summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vertex.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-01-26 16:16:16 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-01-26 16:16:16 +0000
commitcb7c689e1411ebf4a66b6bf36711257352abc822 (patch)
tree503ffb15dd47173f8bc82c7b60d37ab04a2cea09 /src/mesa/tnl/t_vertex.c
parentab41a96ae7df4479bc247ed6d7a06ade350fd149 (diff)
replace MALLOC w/ CALLOC to silence valgrind warnings
Diffstat (limited to 'src/mesa/tnl/t_vertex.c')
-rw-r--r--src/mesa/tnl/t_vertex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index dc9ea6184c..e932ee0ca7 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -1064,7 +1064,7 @@ void _tnl_init_vertices( GLcontext *ctx,
if (max_vertex_size > vtx->max_vertex_size) {
_tnl_free_vertices( ctx );
vtx->max_vertex_size = max_vertex_size;
- vtx->vertex_buf = (GLubyte *)ALIGN_MALLOC(vb_size * max_vertex_size, 32 );
+ vtx->vertex_buf = (GLubyte *)ALIGN_CALLOC(vb_size * max_vertex_size, 32 );
}
}