summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-27 15:23:29 -0700
committerEric Anholt <[email protected]>2010-08-27 15:25:06 -0700
commitd539c69044c735618bf85485df7733e9f0491d18 (patch)
tree4564ab989329e0c0650429df3979c542a6fab966 /src/glsl
parentae6e112c69cf42fb81ef4ed5bdeb3b280647f141 (diff)
glsl: Protect against double compiler-destroy.
DRI was doing teardown when we close the last screen, then an atexit() was added to call it as well.
Diffstat (limited to 'src/glsl')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_builtins.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py
index b9f0ba1ad22..ab5b3777cb7 100755
--- a/src/glsl/builtins/tools/generate_builtins.py
+++ b/src/glsl/builtins/tools/generate_builtins.py
@@ -175,6 +175,7 @@ void
_mesa_glsl_release_functions(void)
{
talloc_free(builtin_mem_ctx);
+ builtin_mem_ctx = NULL;
}
void