glsl: Protect against double compiler-destroy.
authorEric Anholt <eric@anholt.net>
Fri, 27 Aug 2010 22:23:29 +0000 (15:23 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 27 Aug 2010 22:25:06 +0000 (15:25 -0700)
DRI was doing teardown when we close the last screen, then an atexit()
was added to call it as well.

src/glsl/builtins/tools/generate_builtins.py

index b9f0ba1ad2285c68b83e71f0557c9e399e46e32b..ab5b3777cb7ae129e9619f705de87665ef2af522 100755 (executable)
@@ -175,6 +175,7 @@ void
 _mesa_glsl_release_functions(void)
 {
     talloc_free(builtin_mem_ctx);
+    builtin_mem_ctx = NULL;
 }
 
 void