diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-04-19 00:45:50 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-04-19 00:45:50 +0000 |
commit | 7322cccfb9a6b640743ca8cb527f7af922260cb8 (patch) | |
tree | 26d9274a94f5f5acd17758a69dc718eeea23ae68 /src/mesa/tnl/t_imm_dlist.c | |
parent | 6c5b7029b3b805ecfae310a6e5fef15a5609a521 (diff) |
new casts
Diffstat (limited to 'src/mesa/tnl/t_imm_dlist.c')
-rw-r--r-- | src/mesa/tnl/t_imm_dlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c index 8805c23b12..94da392804 100644 --- a/src/mesa/tnl/t_imm_dlist.c +++ b/src/mesa/tnl/t_imm_dlist.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_dlist.c,v 1.39 2002/04/09 16:56:52 keithw Exp $ */ +/* $Id: t_imm_dlist.c,v 1.40 2002/04/19 00:45:50 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -76,7 +76,7 @@ static void build_normal_lengths( struct immediate *IM ) GLuint count = IM->Count - IM->Start; if (!dest) { - dest = IM->NormalLengthPtr = ALIGN_MALLOC( IMM_SIZE*sizeof(GLfloat), 32 ); + dest = IM->NormalLengthPtr = (GLfloat *) ALIGN_MALLOC( IMM_SIZE*sizeof(GLfloat), 32 ); if (!dest) return; } dest += IM->Start; @@ -391,7 +391,7 @@ destroy_compiled_cassette( GLcontext *ctx, void *data ) TNLvertexcassette *node = (TNLvertexcassette *)data; if ( --node->IM->ref_count == 0 ) - _tnl_free_immediate( node->IM ); + _tnl_free_immediate( ctx, node->IM ); } |