gallium: don't free shader.tokens in get_passthrough_fs()

This commit is contained in:
Brian Paul
2008-05-08 19:32:49 -06:00
parent 2a39dbe736
commit f763cc3cb5

View 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;