diff options
author | Brian <[email protected]> | 2008-01-14 19:18:35 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-14 19:18:35 -0700 |
commit | d280206c7f74c6c0fc22798b5945db3bf369364e (patch) | |
tree | d438acb43a9f86b23e6f1ad17c36c3c697d9938b /src/mesa/state_tracker/st_cb_program.c | |
parent | ac95fee4fffee77bb7bd798d094ed2e3a7c4019b (diff) |
free stvp->draw_shader
Diffstat (limited to 'src/mesa/state_tracker/st_cb_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_program.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_program.c b/src/mesa/state_tracker/st_cb_program.c index 63a954264e3..1f34fc86ad3 100644 --- a/src/mesa/state_tracker/st_cb_program.c +++ b/src/mesa/state_tracker/st_cb_program.c @@ -190,11 +190,15 @@ static void st_program_string_notify( GLcontext *ctx, stvp->cso = NULL; } + if (stvp->draw_shader) { + draw_delete_vertex_shader(st->draw, stvp->draw_shader); + stvp->draw_shader = NULL; + } + stvp->param_state = stvp->Base.Base.Parameters->StateFlags; if (st->vp == stvp) st->dirty.st |= ST_NEW_VERTEX_PROGRAM; - } } |