aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-04-22 16:58:16 +0800
committerIan Romanick <[email protected]>2014-05-02 10:50:14 -0700
commit267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7 (patch)
tree820373d474f47b0ba87c73a448d751f3e081bba0 /src/mesa/main/uniforms.h
parent6a2d28599f7326d7e40663033d34c32eeb814473 (diff)
glsl: make static constant variables "static const"
This allows them to be moved to .rodata, and allow us to be sure that they will not be modified. Signed-off-by: Chia-I Wu <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.h')
-rw-r--r--src/mesa/main/uniforms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/uniforms.h b/src/mesa/main/uniforms.h
index c8b555cbea4..10518dcbb6e 100644
--- a/src/mesa/main/uniforms.h
+++ b/src/mesa/main/uniforms.h
@@ -319,7 +319,7 @@ struct gl_builtin_uniform_element {
struct gl_builtin_uniform_desc {
const char *name;
- struct gl_builtin_uniform_element *elements;
+ const struct gl_builtin_uniform_element *elements;
unsigned int num_elements;
};