diff options
author | Eric Anholt <eric@anholt.net> | 2010-08-18 16:56:39 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-08-18 17:10:48 -0700 |
commit | b83846475bac76268d75f53632faf8aad8cad02c (patch) | |
tree | c667c59b52eb4d3086432f1fc895694ab9b2007e /src/mesa/drivers/dri | |
parent | 3cd233eb5714137dccb6218ad78005511bcc02bd (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')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 2 |
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 5eb8b62f45..b1a7b3ed34 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); |