From: Brian Paul Date: Fri, 9 May 2008 01:32:49 +0000 (-0600) Subject: gallium: don't free shader.tokens in get_passthrough_fs() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f763cc3cb54ee419902bdf24065e7c1948e92b67;p=mesa.git gallium: don't free shader.tokens in get_passthrough_fs() --- diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c index 8839ab380f8..a62ea8161c5 100644 --- a/src/mesa/state_tracker/st_atom_shader.c +++ b/src/mesa/state_tracker/st_atom_shader.c @@ -262,7 +262,9 @@ get_passthrough_fs(struct st_context *st) if (!st->passthrough_fs) { st->passthrough_fs = util_make_fragment_passthrough_shader(st->pipe, &shader); +#if 0 /* We actually need to keep the tokens around at this time */ free((void *) shader.tokens); +#endif } return st->passthrough_fs;