glsl: make _mesa_builtin_uniform_desc static

I can't see any reason this is global (unless for debugging)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-09-15 13:26:39 +10:00
parent bfd55711c1
commit 1ce9f25fde
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -328,7 +328,7 @@ static struct gl_builtin_uniform_element gl_NormalMatrix_elements[] = {
#define STATEVAR(name) {#name, name ## _elements, Elements(name ## _elements)}
const struct gl_builtin_uniform_desc _mesa_builtin_uniform_desc[] = {
static const struct gl_builtin_uniform_desc _mesa_builtin_uniform_desc[] = {
STATEVAR(gl_DepthRange),
STATEVAR(gl_ClipPlane),
STATEVAR(gl_Point),
-2
View File
@@ -244,8 +244,6 @@ struct gl_builtin_uniform_desc {
unsigned int num_elements;
};
extern const struct gl_builtin_uniform_desc _mesa_builtin_uniform_desc[];
/**
* \name GLSL uniform arrays and structs require special handling.
*