Lift VBO/tnl stuff up out of drivers

This commit is contained in:
Brian
2007-10-31 11:35:50 -06:00
parent b31e37f14d
commit 8984a28338
3 changed files with 22 additions and 15 deletions

View File

@@ -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 );