From: Ville Syrjälä Date: Mon, 23 Mar 2015 12:47:23 +0000 (+0200) Subject: t_dd_dmatmp: Make the render_tab[]s const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84fec757de2f8c6ba47f2f56077993d62538711a;p=mesa.git t_dd_dmatmp: Make the render_tab[]s const These tables hold function pointers and they never change so make them const. Signed-off-by: Ville Syrjälä Reviewed-by: Ian Romanick --- diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h index b229f42c164..e7e19a03597 100644 --- a/src/mesa/tnl_dd/t_dd_dmatmp.h +++ b/src/mesa/tnl_dd/t_dd_dmatmp.h @@ -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),