summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_imm_alloc.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-04-19 12:32:14 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-04-19 12:32:14 +0000
commit05be7ae1253ad68d80816395c3d09665e5619ebc (patch)
treeaaa634bb60d5cbce9f5da87873ffc36f9b942da3 /src/mesa/tnl/t_imm_alloc.c
parent0c527ab0546eb1de9ee10cc31bc386a40e6b3f98 (diff)
pass context pointer to _tnl_free_immediate(), removed backref pointer
Diffstat (limited to 'src/mesa/tnl/t_imm_alloc.c')
-rw-r--r--src/mesa/tnl/t_imm_alloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_imm_alloc.c b/src/mesa/tnl/t_imm_alloc.c
index 1518331c4a..76bfd16512 100644
--- a/src/mesa/tnl/t_imm_alloc.c
+++ b/src/mesa/tnl/t_imm_alloc.c
@@ -1,4 +1,4 @@
-/* $Id: t_imm_alloc.c,v 1.14 2002/01/10 15:50:12 brianp Exp $ */
+/* $Id: t_imm_alloc.c,v 1.15 2002/04/19 12:32:14 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -47,7 +47,6 @@ static struct immediate *real_alloc_immediate( GLcontext *ctx )
IM->id = id++;
IM->ref_count = 0;
- IM->backref = ctx;
IM->FlushElt = 0;
IM->LastPrimitive = IMM_MAX_COPIED_VERTS;
IM->Count = IMM_MAX_COPIED_VERTS;
@@ -102,9 +101,9 @@ struct immediate *_tnl_alloc_immediate( GLcontext *ctx )
/* May be called after tnl is destroyed.
*/
-void _tnl_free_immediate( struct immediate *IM )
+void _tnl_free_immediate( GLcontext *ctx, struct immediate *IM )
{
- TNLcontext *tnl = TNL_CONTEXT(IM->backref);
+ TNLcontext *tnl = TNL_CONTEXT(ctx);
ASSERT(IM->ref_count == 0);