Mesa (master): glapi: add const qualifier to glShaderSourceARB() parameter
Brian Paul
brianp at kemper.freedesktop.org
Wed Jun 27 21:38:32 UTC 2012
Module: Mesa
Branch: master
Commit: 827bdee7d1ec29ce07f35780f7d2262f2fa0acf4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=827bdee7d1ec29ce07f35780f7d2262f2fa0acf4
Author: Brian Paul <brianp at vmware.com>
Date: Wed Jun 27 10:23:54 2012 -0600
glapi: add const qualifier to glShaderSourceARB() parameter
Fixes the es2 build with gcc.
Note: in glext.h the prototypes for glShaderSource() and glShaderSourceARB()
disagree: only the former has the extra const qualifier.
Reviewed-by: José Fonseca <jfonseca at vmware.com>
---
src/mapi/glapi/gen/gl_API.xml | 2 +-
src/mesa/main/APIspec.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index af05135..2140a40 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -5363,7 +5363,7 @@
<function name="ShaderSource" alias="ShaderSourceARB">
<param name="shader" type="GLuint"/>
<param name="count" type="GLsizei"/>
- <param name="string" type="const GLchar **"/>
+ <param name="string" type="const GLchar * const *"/>
<param name="length" type="const GLint *"/>
<glx ignore="true"/>
</function>
diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml
index 64e666e..f870cf7 100644
--- a/src/mesa/main/APIspec.xml
+++ b/src/mesa/main/APIspec.xml
@@ -2946,7 +2946,7 @@
<return type="void"/>
<param name="shader" type="GLuint"/>
<param name="count" type="GLsizei"/>
- <param name="string" type="const GLchar **"/>
+ <param name="string" type="const GLchar * const *"/>
<param name="length" type="const int *"/>
</proto>
</template>
More information about the mesa-commit
mailing list