tnl: add const qualifier to silence warning
authorBrian Paul <brianp@vmware.com>
Tue, 30 Aug 2011 15:47:25 +0000 (09:47 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Aug 2011 16:17:53 +0000 (10:17 -0600)
src/mesa/tnl/t_draw.c

index a5225c439b5b9e1054802d3fce46f48ceb5ddd46..283ab6954857a4cc78d9970ccc296718be964ea5 100644 (file)
@@ -340,7 +340,7 @@ static void bind_indices( struct gl_context *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
    GLuint i;
-   void *ptr;
+   const void *ptr;
 
    if (!ib) {
       VB->Elts = NULL;