From: Dylan Noblesmith Date: Sun, 1 Apr 2012 18:55:23 +0000 (+0000) Subject: mesa: don't cast away const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75fe7d1995cc828e821efddfaee8cbc52e27a52c;p=mesa.git mesa: don't cast away const Reviewed-by: Brian Paul --- 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; }