From 75fe7d1995cc828e821efddfaee8cbc52e27a52c Mon Sep 17 00:00:00 2001 From: Dylan Noblesmith Date: Sun, 1 Apr 2012 18:55:23 +0000 Subject: [PATCH] mesa: don't cast away const Reviewed-by: Brian Paul --- src/mesa/main/extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 3ce4cd5596c..5f2c74a758e 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -940,7 +940,7 @@ _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index) n = 0; for (i = extension_table; i->name != 0; ++i) { if (n == index && base[i->offset]) { - return (GLubyte*) i->name; + return (const GLubyte*) i->name; } else if (base[i->offset]) { ++n; } -- 2.30.2