diff options
author | Brian Paul <[email protected]> | 2008-05-20 13:50:10 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-20 13:50:10 -0600 |
commit | 71eb1088311b8309868d78e237452cb414728fbb (patch) | |
tree | 7483a7f051904e1d5d502bb1daf8aa0ed3d37c9a /src/mesa | |
parent | 479174c398b5d15998852d7776900bf7ec0b1bcd (diff) | |
parent | 4b4ac9ed3497d0cbf58311b83ed4a08a98bb854c (diff) |
Merge branch 'gallium-0.1' into gallium-tex-surfaces
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_clear.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index b7d72046339..cdfcdcee72c 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -97,6 +97,16 @@ st_destroy_clear(struct st_context *st) { struct pipe_context *pipe = st->pipe; + if (st->clear.vert_shader.tokens) { + FREE((void *) st->clear.vert_shader.tokens); + st->clear.vert_shader.tokens = NULL; + } + + if (st->clear.frag_shader.tokens) { + FREE((void *) st->clear.frag_shader.tokens); + st->clear.frag_shader.tokens = NULL; + } + if (st->clear.fs) { cso_delete_fragment_shader(st->cso_context, st->clear.fs); st->clear.fs = NULL; |