diff options
author | Eric Anholt <[email protected]> | 2010-08-18 16:56:39 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-18 17:10:48 -0700 |
commit | b83846475bac76268d75f53632faf8aad8cad02c (patch) | |
tree | c667c59b52eb4d3086432f1fc895694ab9b2007e /src/glsl/glsl_parser_extras.h | |
parent | 3cd233eb5714137dccb6218ad78005511bcc02bd (diff) |
glsl2: Free the shader compiler at dri screen destruction.
Hooray, we can valgrind again without adding suppressions. This also
adds an interface for use by an implementation of
glReleaseShaderCompiler().
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/glsl/glsl_parser_extras.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 9e3cac26e26..b0b1bc31d05 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -178,6 +178,9 @@ extern void _mesa_glsl_warning(const YYLTYPE *locp, extern "C" { extern int preprocess(void *ctx, const char **shader, char **info_log, const struct gl_extensions *extensions); + +extern void _mesa_destroy_shader_compiler(); +extern void _mesa_destroy_shader_compiler_caches(); } extern void _mesa_glsl_lexer_ctor(struct _mesa_glsl_parse_state *state, |