projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0728e2b
)
mesa: annotate AttribFuncsARB[] as const
author
Emil Velikov
<emil.velikov@collabora.com>
Thu, 25 Aug 2016 15:59:01 +0000
(16:59 +0100)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Thu, 6 Oct 2016 14:03:46 +0000
(15:03 +0100)
It's read-only data, so annotate it accordingly.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mesa/main/api_arrayelt.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/api_arrayelt.c
b/src/mesa/main/api_arrayelt.c
index c84db5f97f6eb3fb41748194364f81e108317be4..15fbb8c9baeb551050e488b28b216555161b3def 100644
(file)
--- a/
src/mesa/main/api_arrayelt.c
+++ b/
src/mesa/main/api_arrayelt.c
@@
-1288,7
+1288,7
@@
VertexAttribL4dv(GLuint index, const GLdouble *v)
* Array [unnormalized/normalized/integer][size][type] of VertexAttrib
* functions
*/
-static attrib_func AttribFuncsARB[4][4][NUM_TYPES] = {
+static
const
attrib_func AttribFuncsARB[4][4][NUM_TYPES] = {
{
/* non-normalized */
{