[Mesa-dev] [PATCH 2/3] radeon: const correctness

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Sat Nov 28 07:43:56 PST 2015


Add missing `const` specifier for pointer pointing to a const struct.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
---
 src/mesa/drivers/dri/radeon/radeon_swtcl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_swtcl.c b/src/mesa/drivers/dri/radeon/radeon_swtcl.c
index ed6b25c..adc1468 100644
--- a/src/mesa/drivers/dri/radeon/radeon_swtcl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_swtcl.c
@@ -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 ||
-- 
2.6.0.rc2.233.g6dd8a9a.dirty



More information about the mesa-dev mailing list