diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-02 17:37:50 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-02 17:37:50 +0000 |
commit | d8a6ef40a6bb6299cbc5ca063b5de66c9761c729 (patch) | |
tree | 67493dd9acb53914d3b6949afa8e523fa0bc2bef | |
parent | 7a79373adc516ad6bd55a40de40360425c89faad (diff) |
use calloc instead of malloc so try_codegen field is initialized to zero (bug 5791)
-rw-r--r-- | src/mesa/tnl/t_vb_arbprogram.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index 0b76bd008d..259961306a 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.4.1 + * Version: 6.4.2 * - * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1395,7 +1395,7 @@ static GLboolean init_vertex_program( GLcontext *ctx, const GLuint size = VB->Size; GLuint i; - stage->privatePtr = _mesa_malloc(sizeof(*m)); + stage->privatePtr = _mesa_calloc(sizeof(*m)); m = ARB_VP_MACHINE(stage); if (!m) return GL_FALSE; @@ -1417,7 +1417,7 @@ static GLboolean init_vertex_program( GLcontext *ctx, ASSIGN_4V(m->File[0][REG_LIT2], 1, .5, .2, 1); /* debug value */ if (_mesa_getenv("MESA_EXPERIMENTAL")) - m->try_codegen = 1; + m->try_codegen = GL_TRUE; /* Allocate arrays of vertex output values */ for (i = 0; i < VERT_RESULT_MAX; i++) { |