gallium: don't free shader.tokens in get_passthrough_fs()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 9 May 2008 01:32:49 +0000 (19:32 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 9 May 2008 01:32:49 +0000 (19:32 -0600)
src/mesa/state_tracker/st_atom_shader.c

index 8839ab380f8aeea2cea4dfa239f811e3465eb683..a62ea8161c5b581c80d192525926e9330c000938 100644 (file)
@@ -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;