summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-08 19:32:49 -0600
committerBrian Paul <[email protected]>2008-05-08 19:32:49 -0600
commitf763cc3cb54ee419902bdf24065e7c1948e92b67 (patch)
tree84b6c1a5ac1d60de086e1bae5a61e6165f229a62
parent2a39dbe7364af5444b1eb43650dfc31ed09257dc (diff)
gallium: don't free shader.tokens in get_passthrough_fs()
-rw-r--r--src/mesa/state_tracker/st_atom_shader.c2
1 files changed, 2 insertions, 0 deletions
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;