mesa/main: only call _mesa_destroy_shader_compiler once on exit
authorErik Faye-Lund <kusmabite@gmail.com>
Sun, 28 Jun 2015 12:51:06 +0000 (14:51 +0200)
committerMatt Turner <mattst88@gmail.com>
Mon, 29 Jun 2015 16:06:40 +0000 (09:06 -0700)
commit195ab79ddecbdbf1f1714c233df278bff46c13e8
treecf57e354934d9a10fe8cd7df786072cbf44bc7b4
parentba5e1612c892282b930e278b5b98f1578cbe7dbb
mesa/main: only call _mesa_destroy_shader_compiler once on exit

There's no point in calling _mesa_destroy_shader_compiler multiple
times on exit; the resources will only be released once anyway.

So let's move the atexit-call into the part that is only called
once.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/context.c