OSDN Git Service

Import constness fix from gl3.h into gl2.h.
authorAlistair Strachan <alistair.strachan@imgtec.com>
Mon, 21 Jan 2013 19:24:32 +0000 (11:24 -0800)
committerJesse Hall <jessehall@google.com>
Tue, 12 Feb 2013 00:12:49 +0000 (16:12 -0800)
commit7c95911157999d30fbadf8f964155396d17c49da
tree419c618b377315d8b9c5b77455456b508267a26f
parent2b6694f5f0106b535bf9188262ca8ca72278e906
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
opengl/include/GLES2/gl2.h
opengl/libs/GLES2/gl2_api.in