call _ae_destroy_context() and _ae_invalidate_state() from the proper places
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Dec 2003 01:55:49 +0000 (01:55 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Dec 2003 01:55:49 +0000 (01:55 +0000)
src/mesa/tnl/t_context.c

index 383e50601e2afff8ad95bde56efbec7a12604b7f..a78d880d01068a0187d964eec45f0a050d1d8c16 100644 (file)
@@ -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);