gallium: use cso_destroy_vertex/fragment_shader() functions

Also, rearrange the st_destroy_context() code a bit to prevent some
invalid/NULL ptr derefs during tear-down.
This commit is contained in:
Brian Paul
2008-04-24 12:11:24 -06:00
parent 386102c62a
commit a770d40c3d
5 changed files with 18 additions and 13 deletions

View File

@@ -98,11 +98,11 @@ st_destroy_clear(struct st_context *st)
struct pipe_context *pipe = st->pipe;
if (st->clear.fs) {
pipe->delete_fs_state(pipe, st->clear.fs);
cso_delete_fragment_shader(st->cso_context, st->clear.fs);
st->clear.fs = NULL;
}
if (st->clear.vs) {
pipe->delete_vs_state(pipe, st->clear.vs);
cso_delete_vertex_shader(st->cso_context, st->clear.vs);
st->clear.vs = NULL;
}
if (st->clear.vbuf) {