gallium: move vertex/fragment program unbinding
This commit is contained in:
parent
13c7491406
commit
69fd676240
|
@ -158,9 +158,6 @@ static void st_destroy_context_priv( struct st_context *st )
|
|||
{
|
||||
uint i;
|
||||
|
||||
st_reference_fragprog(st, &st->fp, NULL);
|
||||
st_reference_vertprog(st, &st->vp, NULL);
|
||||
|
||||
draw_destroy(st->draw);
|
||||
st_destroy_atoms( st );
|
||||
st_destroy_draw( st );
|
||||
|
@ -195,6 +192,9 @@ void st_destroy_context( struct st_context *st )
|
|||
/* need to unbind and destroy CSO objects before anything else */
|
||||
cso_release_all(st->cso_context);
|
||||
|
||||
st_reference_fragprog(st, &st->fp, NULL);
|
||||
st_reference_vertprog(st, &st->vp, NULL);
|
||||
|
||||
_mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache);
|
||||
|
||||
_mesa_free_context_data(ctx);
|
||||
|
|
Loading…
Reference in New Issue