diff options
author | Matt Turner <mattst88@gmail.com> | 2016-02-27 14:15:26 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-03-01 11:41:29 -0800 |
commit | 6b1fb4862e0b1b338eb78e91aa862df889d4529a (patch) | |
tree | fa6beef21da394da2ad79d18b4a54c43d9cca4cb /src | |
parent | fc61b41a956f05d57afcb6af7eb61637b4936fb4 (diff) | |
download | external_mesa3d-6b1fb4862e0b1b338eb78e91aa862df889d4529a.zip external_mesa3d-6b1fb4862e0b1b338eb78e91aa862df889d4529a.tar.gz external_mesa3d-6b1fb4862e0b1b338eb78e91aa862df889d4529a.tar.bz2 |
program: Mark table const.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/program/prog_noise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_noise.c b/src/mesa/program/prog_noise.c index ac920c2..e2e209e 100644 --- a/src/mesa/program/prog_noise.c +++ b/src/mesa/program/prog_noise.c @@ -188,7 +188,7 @@ grad4(int hash, float x, float y, float z, float t) * Details can be found where this table is used, in the 4D noise method. * TODO: This should not be required, backport it from Bill's GLSL code! */ -static unsigned char simplex[64][4] = { +static const unsigned char simplex[64][4] = { {0, 1, 2, 3}, {0, 1, 3, 2}, {0, 0, 0, 0}, {0, 2, 3, 1}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {1, 2, 3, 0}, {0, 2, 1, 3}, {0, 0, 0, 0}, {0, 3, 1, 2}, {0, 3, 2, 1}, |