summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDylan Noblesmith <[email protected]>2012-04-01 18:55:23 +0000
committerDylan Noblesmith <[email protected]>2012-04-13 14:25:08 +0000
commit75fe7d1995cc828e821efddfaee8cbc52e27a52c (patch)
treed1d5dedf525344f3002690ad09010d6c982ea3d4 /src/mesa
parent2bb91274e2cc2290ce8e790335f1e57b81d9d783 (diff)
mesa: don't cast away const
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/extensions.c2
1 files changed, 1 insertions, 1 deletions
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;
}