mesa: don't cast away const
authorDylan Noblesmith <nobled@dreamwidth.org>
Sun, 1 Apr 2012 18:55:23 +0000 (18:55 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Fri, 13 Apr 2012 14:25:08 +0000 (14:25 +0000)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/extensions.c

index 3ce4cd5596ce9e98b7d45dc24d97744fed1555d1..5f2c74a758e7681624f2988ba2c94a8a35a1e9db 100644 (file)
@@ -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;
       }