t_dd_dmatmp: Make the render_tab[]s const
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 23 Mar 2015 12:47:23 +0000 (14:47 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 23 Sep 2015 16:57:46 +0000 (09:57 -0700)
These tables hold function pointers and they never change so
make them const.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/tnl_dd/t_dd_dmatmp.h

index b229f42c164dc8eaa7ca981ce15f9d2051de9f70..e7e19a035971480f403cb3c8c004d454f6cd4fd4 100644 (file)
@@ -409,7 +409,7 @@ static void TAG(render_noop)(struct gl_context *ctx,
    (void) flags;
 }
 
-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),