From: Brian Date: Tue, 15 Jan 2008 02:18:35 +0000 (-0700) Subject: free stvp->draw_shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d280206c7f74c6c0fc22798b5945db3bf369364e;p=mesa.git free stvp->draw_shader --- 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; - } }