radeon: const correctness
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 28 Nov 2015 15:43:56 +0000 (16:43 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 4 Dec 2015 14:06:41 +0000 (14:06 +0000)
Add missing `const` specifier for pointer pointing to a const struct.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mesa/drivers/dri/radeon/radeon_swtcl.c

index ed6b25ccea5a4ea89696bb86e50549a1ca977e94..adc146852eaa23b9d7071833729bf1e89b526b94 100644 (file)
@@ -414,7 +414,7 @@ static GLboolean radeon_run_render( struct gl_context *ctx,
    r100ContextPtr rmesa = R100_CONTEXT(ctx);
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
-   tnl_render_func *tab = TAG(render_tab_verts);
+   const tnl_render_func *tab = TAG(render_tab_verts);
    GLuint i;
 
    if (rmesa->radeon.swtcl.RenderIndex != 0 ||