From: Matt Turner Date: Sat, 27 Feb 2016 22:15:26 +0000 (-0800) Subject: program: Mark table const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b1fb4862e0b1b338eb78e91aa862df889d4529a;p=mesa.git program: Mark table const. Reviewed-by: Kenneth Graunke Reviewed-by: Ian Romanick Acked-by: Brian Paul --- diff --git a/src/mesa/program/prog_noise.c b/src/mesa/program/prog_noise.c index ac920c23f34..e2e209e5bd3 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},