OSDN Git Service

Minor changes to ES3 functions inherited from ES2
authorJesse Hall <jessehall@google.com>
Fri, 29 Mar 2013 22:21:09 +0000 (15:21 -0700)
committerJesse Hall <jessehall@google.com>
Wed, 10 Apr 2013 15:34:54 +0000 (08:34 -0700)
With the addition of float framebuffer support in ES3, some parameters
to ES2 functions are now GLfloat instead of GLclampf. Both are
typedefs for 'float', so this is a source and binary compatible change.

Bug: 8566953
Change-Id: I0b5acc78da7799a04053fdb568205f793792cad9

opengl/tools/glgen/specs/gles11/GLES30.spec

index 68d146e..a02e6f7 100644 (file)
@@ -5,7 +5,7 @@ void glBindBuffer ( GLenum target, GLuint buffer )
 void glBindFramebuffer ( GLenum target, GLuint framebuffer )
 void glBindRenderbuffer ( GLenum target, GLuint renderbuffer )
 void glBindTexture ( GLenum target, GLuint texture )
-void glBlendColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
+void glBlendColor ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
 void glBlendEquation ( GLenum mode )
 void glBlendEquationSeparate ( GLenum modeRGB, GLenum modeAlpha )
 void glBlendFunc ( GLenum sfactor, GLenum dfactor )
@@ -14,8 +14,8 @@ void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum u
 void glBufferSubData ( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data )
 GLenum glCheckFramebufferStatus ( GLenum target )
 void glClear ( GLbitfield mask )
-void glClearColor ( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha )
-void glClearDepthf ( GLclampf depth )
+void glClearColor ( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha )
+void glClearDepthf ( GLfloat depth )
 void glClearStencil ( GLint s )
 void glColorMask ( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha )
 void glCompileShader ( GLuint shader )
@@ -34,7 +34,7 @@ void glDeleteShader ( GLuint shader )
 void glDeleteTextures ( GLsizei n, const GLuint *textures )
 void glDepthFunc ( GLenum func )
 void glDepthMask ( GLboolean flag )
-void glDepthRangef ( GLclampf zNear, GLclampf zFar )
+void glDepthRangef ( GLfloat n, GLfloat f )
 void glDetachShader ( GLuint program, GLuint shader )
 void glDisable ( GLenum cap )
 void glDisableVertexAttribArray ( GLuint index )
@@ -94,7 +94,7 @@ void glPolygonOffset ( GLfloat factor, GLfloat units )
 void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels )
 void glReleaseShaderCompiler ( void )
 void glRenderbufferStorage ( GLenum target, GLenum internalformat, GLsizei width, GLsizei height )
-void glSampleCoverage ( GLclampf value, GLboolean invert )
+void glSampleCoverage ( GLfloat value, GLboolean invert )
 void glScissor ( GLint x, GLint y, GLsizei width, GLsizei height )
 void glShaderBinary ( GLsizei n, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length )
 void glShaderSource ( GLuint shader )