summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2014-04-22 16:58:16 +0800
committerIan Romanick <ian.d.romanick@intel.com>2014-05-02 10:50:14 -0700
commit267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7 (patch)
tree820373d474f47b0ba87c73a448d751f3e081bba0 /src/mesa/main/uniforms.h
parent6a2d28599f7326d7e40663033d34c32eeb814473 (diff)
downloadexternal_mesa3d-267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7.zip
external_mesa3d-267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7.tar.gz
external_mesa3d-267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7.tar.bz2
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 <olv@lunarg.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
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 c8b555c..10518dc 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;
};