From 439bc1614dba5694cd10476c0238ddd1f77fc94e Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Fri, 29 Mar 2013 15:21:09 -0700 Subject: [PATCH] Minor changes to ES3 functions inherited from ES2 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/opengl/tools/glgen/specs/gles11/GLES30.spec b/opengl/tools/glgen/specs/gles11/GLES30.spec index 68d146e486..a02e6f7615 100644 --- a/opengl/tools/glgen/specs/gles11/GLES30.spec +++ b/opengl/tools/glgen/specs/gles11/GLES30.spec @@ -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 ) -- 2.11.0