aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/dri_util.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-18 16:56:39 -0700
committerEric Anholt <[email protected]>2010-08-18 17:10:48 -0700
commitb83846475bac76268d75f53632faf8aad8cad02c (patch)
treec667c59b52eb4d3086432f1fc895694ab9b2007e /src/mesa/drivers/dri/common/dri_util.c
parent3cd233eb5714137dccb6218ad78005511bcc02bd (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/mesa/drivers/dri/common/dri_util.c')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 5eb8b62f450..b1a7b3ed342 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -707,6 +707,8 @@ static void driDestroyScreen(__DRIscreen *psp)
* stream open to the X-server anymore.
*/
+ _mesa_destroy_shader_compiler();
+
if (psp->DriverAPI.DestroyScreen)
(*psp->DriverAPI.DestroyScreen)(psp);