[Mesa-dev] [PATCH 07/20] t_dd_dmatmp: Make the render_tab[]s const

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Mon Mar 23 05:47:23 PDT 2015


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

These tables hold function pointers and they never change so
make them const.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 src/mesa/tnl_dd/t_dd_dmatmp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h
index 2132c07..7f9b433 100644
--- a/src/mesa/tnl_dd/t_dd_dmatmp.h
+++ b/src/mesa/tnl_dd/t_dd_dmatmp.h
@@ -553,7 +553,7 @@ static void TAG(render_noop)( struct gl_context *ctx,
 
 
 
-static tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] =
+static const tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] =
 {
    TAG(render_points_verts),
    TAG(render_lines_verts),
@@ -1046,7 +1046,7 @@ static void TAG(render_quads_elts)( struct gl_context *ctx,
 
 
 
-static tnl_render_func TAG(render_tab_elts)[GL_POLYGON+2] =
+static const tnl_render_func TAG(render_tab_elts)[GL_POLYGON+2] =
 {
    TAG(render_points_elts),
    TAG(render_lines_elts),
-- 
2.0.5



More information about the mesa-dev mailing list