projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bb9127
)
mesa: don't cast away const
author
Dylan Noblesmith
<nobled@dreamwidth.org>
Sun, 1 Apr 2012 18:55:23 +0000
(18:55 +0000)
committer
Dylan 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/extensions.c
b/src/mesa/main/extensions.c
index
3ce4cd5
..
5f2c74a
100644
(file)
--- 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;
}