blob: d912e19e49f3c92423657398a8aae17ebc746643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-src_compiler_glsl_glsl__parser__extras.cpp,v 1.1 2016/04/17 00:03:00 wiz Exp $
atexit() is not a good idea in a library; use destructor attribute.
--- src/compiler/glsl/glsl_parser_extras.cpp.orig 2016-04-04 10:24:28.000000000 +0000
+++ src/compiler/glsl/glsl_parser_extras.cpp
@@ -1938,7 +1938,7 @@ extern "C" {
* programs would be invalid. So this should happen at approximately
* program exit.
*/
-void
+void __attribute__((__destructor__))
_mesa_destroy_shader_compiler(void)
{
_mesa_destroy_shader_compiler_caches();
|