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 b9f0ba1..ab5b377 100755 (executable)
@@ -175,6 +175,7 @@ void
 _mesa_glsl_release_functions(void)
 {
     talloc_free(builtin_mem_ctx);
+    builtin_mem_ctx = NULL;
 }
 
 void