summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-31 11:35:50 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-31 11:35:50 -0600
commit8984a283389a13f9b4315aa7b7df1eaaa612ba28 (patch)
treea9317eb227536a98b2b51f0340f98ed135a52f40 /src/mesa/state_tracker
parentb31e37f14d75231724a1cbb0c7fe7031a2315671 (diff)
Lift VBO/tnl stuff up out of drivers
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 95c5eec26e..97e178bbe1 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -78,6 +78,11 @@ struct st_context *st_create_context( GLcontext *ctx,
st->ctx = ctx;
st->pipe = pipe;
+ /* state tracker needs the VBO module */
+ _vbo_CreateContext(ctx);
+ /* XXX temporary */
+ _tnl_CreateContext(ctx);
+
st->draw = draw_create(); /* for selection/feedback */
st->dirty.mesa = ~0;
@@ -125,6 +130,9 @@ void st_destroy_context( struct st_context *st )
st_destroy_atoms( st );
st_destroy_draw( st );
+ _vbo_DestroyContext(st->ctx);
+ _tnl_DestroyContext(st->ctx); /* XXX temporary */
+
#if 0
st_destroy_cb_clear( st );
st_destroy_cb_program( st );