Module: Mesa
Branch: master
Commit: 0216a16819f86bc9030c9bf4d8f377833e6e33dd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0216a16819f86bc9030c9bf4d8f377833e6e33dd

Author: Emil Velikov <[email protected]>
Date:   Thu Aug 25 16:59:01 2016 +0100

mesa: annotate AttribFuncsARB[] as const

It's read-only data, so annotate it accordingly.

Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>


---

 src/mesa/main/api_arrayelt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c
index c84db5f..15fbb8c 100644
--- 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 */
       {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to