summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vertex.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-02-10 10:57:22 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-02-10 10:57:22 +0000
commitb97e478fe90f612041e27852eb8c95f45467bde8 (patch)
tree944adbe75c4027772cc1208c4ba35c60d1480148 /src/mesa/tnl/t_vertex.c
parenta9a4c5489ec12f6aa768d44578c332f654c536ea (diff)
mesa-tnl-0-to-NULL.patch from Jeff Muizelaar
Diffstat (limited to 'src/mesa/tnl/t_vertex.c')
-rw-r--r--src/mesa/tnl/t_vertex.c10
1 files changed, 5 insertions, 5 deletions
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 );