summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-22 23:27:27 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-22 23:27:27 +0000
commit286f3fbb3a4707c93e511b374381aa31faa2d191 (patch)
tree11d509adf89cc2d3786e4364b52681904c855346 /src/mesa/tnl
parente6e1c3fc11cb421ce3a703b81e8fe7057c5134a9 (diff)
disable freeing of fp->func, see comment (bug 5131)
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vertex.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index bed3cf1879..ab606de705 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -494,7 +494,14 @@ void _tnl_free_vertices( GLcontext *ctx )
for (fp = vtx->fastpath ; fp ; fp = tmp) {
tmp = fp->next;
FREE(fp->attr);
- FREE((void *)fp->func);
+ /* XXX Can we be sure that fp->func points to memory that was
+ * allocated with _mesa_exec_malloc()? I think it's possible that
+ * the pointer can point to an ordinary C function.
+ * Just disable this for the time being.
+ */
+#if 0
+ _mesa_exec_free((void *) fp->func);
+#endif
FREE(fp);
}