From d539c69044c735618bf85485df7733e9f0491d18 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Aug 2010 15:23:29 -0700 Subject: [PATCH] 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. --- src/glsl/builtins/tools/generate_builtins.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2