aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/glsl_parser_extras.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/glsl_parser_extras.h')
-rw-r--r--mesalib/src/glsl/glsl_parser_extras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesalib/src/glsl/glsl_parser_extras.h b/mesalib/src/glsl/glsl_parser_extras.h
index 9c16d5de8..a2fecd45c 100644
--- a/mesalib/src/glsl/glsl_parser_extras.h
+++ b/mesalib/src/glsl/glsl_parser_extras.h
@@ -58,6 +58,10 @@ struct _mesa_glsl_parse_state {
/* If the user *does* call delete, that's OK, we will just
* talloc_free in that case. */
+ static void operator delete(void *mem, void *ctx)
+ {
+ talloc_free(mem);
+ }
static void operator delete(void *mem)
{
talloc_free(mem);