summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-12-13 01:55:49 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-12-13 01:55:49 +0000
commit3c7b7df6d5d7fefeec601c6e23024692a9ba77e7 (patch)
tree9a92821989c46521f1c616ffbaf6d00c46b18c13
parentc360a721e7081c08cd33621462056a62335908a7 (diff)
call _ae_destroy_context() and _ae_invalidate_state() from the proper places
-rw-r--r--src/mesa/tnl/t_context.c4
1 files changed, 3 insertions, 1 deletions
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);