summaryrefslogtreecommitdiff
path: root/src/mesa/tnl_dd
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-03-23 14:47:23 +0200
committerIan Romanick <ian.d.romanick@intel.com>2015-09-23 09:57:46 -0700
commit84fec757de2f8c6ba47f2f56077993d62538711a (patch)
tree5e7bb9e2d9dcbd5cc4998fc1ef3fe01fc26e5786 /src/mesa/tnl_dd
parentabbaf3301f2405adf61d2804706c00a391a1336e (diff)
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ä <ville.syrjala@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/tnl_dd')
-rw-r--r--src/mesa/tnl_dd/t_dd_dmatmp.h2
1 files changed, 1 insertions, 1 deletions
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),