glsl: make builtin_mem_ctx a static
authorDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 03:02:51 +0000 (13:02 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 08:02:46 +0000 (18:02 +1000)
This isn't used outside the generated file.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/builtins/tools/generate_builtins.py

index 86660a9362c8d7463527d084a5e5e474ab0aa80e..9dc3279dfcc3fa8a55938ec379f70139c247f472 100755 (executable)
@@ -225,7 +225,7 @@ read_builtins(GLenum target, const char *protos, const char **functions, unsigne
     print 'static gl_shader *builtin_profiles[%d];' % len(profiles)
 
     print """
-void *builtin_mem_ctx = NULL;
+static void *builtin_mem_ctx = NULL;
 
 void
 _mesa_glsl_release_functions(void)