summaryrefslogtreecommitdiff
path: root/src/mesa/tnl/t_vertex_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/tnl/t_vertex_c.c')
-rw-r--r--src/mesa/tnl/t_vertex_c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vertex_c.c b/src/mesa/tnl/t_vertex_c.c
index a901aed14c..419e7b9242 100644
--- a/src/mesa/tnl/t_vertex_c.c
+++ b/src/mesa/tnl/t_vertex_c.c
@@ -257,3 +257,11 @@ void _tnl_init_c_codegen( struct tnl_clipspace_codegen *p )
p->buf_size = 2048;
p->buf = (char *) MALLOC(p->buf_size);
}
+
+void _tnl_free_c_codegen( struct tnl_clipspace_codegen *p )
+{
+ if (p->buf) {
+ FREE(p->buf);
+ p->buf = 0;
+ }
+}