summaryrefslogtreecommitdiff
path: root/opengl/libs
diff options
context:
space:
mode:
author Alistair Strachan <alistair.strachan@imgtec.com> 2013-01-21 11:24:32 -0800
committer Jesse Hall <jessehall@google.com> 2013-02-11 16:12:49 -0800
commit7c95911157999d30fbadf8f964155396d17c49da (patch)
tree419c618b377315d8b9c5b77455456b508267a26f /opengl/libs
parent2b6694f5f0106b535bf9188262ca8ca72278e906 (diff)
Import constness fix from gl3.h into gl2.h.
This change has been made in Khronos SVN for GLES2 already, however it is mildly controversial and discussion is on-going. This change is necessary for Android because otherwise applications cannot include both GLES2/gl2.h and GLES3/gl3.h as the glShaderSource() prototype mismatches. Native programs may include framework headers (which now include GLES3 headers only) but already have included GLES2 headers, creating an incompatibility. Change-Id: I70a4075e079ee063e76cef5a227abb0ae70aebb4
Diffstat (limited to 'opengl/libs')
-rw-r--r--opengl/libs/GLES2/gl2_api.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/GLES2/gl2_api.in b/opengl/libs/GLES2/gl2_api.in
index cccf46c1bc..89c8b8d671 100644
--- a/opengl/libs/GLES2/gl2_api.in
+++ b/opengl/libs/GLES2/gl2_api.in
@@ -292,7 +292,7 @@ void API_ENTRY(glScissor)(GLint x, GLint y, GLsizei width, GLsizei height) {
void API_ENTRY(glShaderBinary)(GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length) {
CALL_GL_API(glShaderBinary, n, shaders, binaryformat, binary, length);
}
-void API_ENTRY(glShaderSource)(GLuint shader, GLsizei count, const GLchar** string, const GLint* length) {
+void API_ENTRY(glShaderSource)(GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) {
CALL_GL_API(glShaderSource, shader, count, string, length);
}
void API_ENTRY(glStencilFunc)(GLenum func, GLint ref, GLuint mask) {