From 3c7b7df6d5d7fefeec601c6e23024692a9ba77e7 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 13 Dec 2003 01:55:49 +0000 Subject: call _ae_destroy_context() and _ae_invalidate_state() from the proper places --- src/mesa/tnl/t_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/tnl') diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 383e50601e..a78d880d01 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -1,4 +1,3 @@ - /* * Mesa 3-D graphics library * Version: 5.1 @@ -131,6 +130,7 @@ _tnl_DestroyContext( GLcontext *ctx ) _tnl_vtx_destroy( ctx ); _tnl_save_destroy( ctx ); _tnl_destroy_pipeline( ctx ); + _ae_destroy_context( ctx ); FREE(tnl); ctx->swtnl_context = 0; @@ -146,6 +146,8 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state ) tnl->pipeline.run_input_changes |= ctx->Array.NewState; /* overkill */ } + _ae_invalidate_state(ctx, new_state); + tnl->pipeline.run_state_changes |= new_state; tnl->pipeline.build_state_changes |= (new_state & tnl->pipeline.build_state_trigger); -- cgit v1.2.3