This patch is

Reviewed-by: Ian Romanick <[email protected]>

On 03/23/2015 05:47 AM, [email protected] wrote:
> From: Ville Syrjälä <[email protected]>
> 
> These tables hold function pointers and they never change so
> make them const.
> 
> Signed-off-by: Ville Syrjälä <[email protected]>
> ---
>  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),
> 

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

Reply via email to