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:
@@ -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),
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user