Lift VBO/tnl stuff up out of drivers
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user