From b97e478fe90f612041e27852eb8c95f45467bde8 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 10 Feb 2005 10:57:22 +0000 Subject: mesa-tnl-0-to-NULL.patch from Jeff Muizelaar --- src/mesa/tnl/t_vertex.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/tnl/t_vertex.c') diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c index bc60665bbd..2f7c37ad24 100644 --- a/src/mesa/tnl/t_vertex.c +++ b/src/mesa/tnl/t_vertex.c @@ -831,8 +831,8 @@ const static struct { 4 * sizeof(GLchan) }, { "pad", - 0, - { 0, 0, 0, 0 }, + NULL, + { NULL, NULL, NULL, NULL }, 0 } }; @@ -1105,7 +1105,7 @@ static void choose_emit_func( GLcontext *ctx, GLuint count, GLubyte *dest) struct tnl_clipspace_attr *a = vtx->attr; const GLuint attr_count = vtx->attr_count; - vtx->emit = 0; + vtx->emit = NULL; if (0) vtx->emit = _tnl_codegen_emit(ctx); @@ -1421,7 +1421,7 @@ void _tnl_init_vertices( GLcontext *ctx, { struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); - _tnl_install_attrs( ctx, 0, 0, 0, 0 ); + _tnl_install_attrs( ctx, NULL, 0, NULL, 0 ); vtx->need_extras = GL_TRUE; if (max_vertex_size > vtx->max_vertex_size) { @@ -1440,7 +1440,7 @@ void _tnl_free_vertices( GLcontext *ctx ) struct tnl_clipspace *vtx = GET_VERTEX_STATE(ctx); if (vtx->vertex_buf) { ALIGN_FREE(vtx->vertex_buf); - vtx->vertex_buf = 0; + vtx->vertex_buf = NULL; } _tnl_free_c_codegen( &vtx->codegen ); -- cgit v1.2.3