mesa/es: Remove redundant alpha function validation
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 20 Sep 2011 23:17:16 +0000 (16:17 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Aug 2012 23:06:32 +0000 (16:06 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/APIspec.xml
src/mesa/main/es1_conversion.c

index c3066af5f2db8ee1df8f8daba17ff35d256c5cbf..c0e6bc4e8dc462fda4096d0591e301fafcc7f66a 100644 (file)
                <param name="func" type="GLenum"/>
                <param name="ref" type="GLtype"/>
        </proto>
-       <desc name="func">
-               <value name="GL_NEVER"/>
-               <value name="GL_LESS"/>
-               <value name="GL_EQUAL"/>
-               <value name="GL_LEQUAL"/>
-               <value name="GL_GREATER"/>
-               <value name="GL_NOTEQUAL"/>
-               <value name="GL_GEQUAL"/>
-               <value name="GL_ALWAYS"/>
-       </desc>
 </template>
 
 <template name="BlendFunc">
index 12cbcd4070ff0bd19abbd372b371af26d8d2593c..ff5e45176e2d93c118e266de59c22adfd81bd147 100644 (file)
 void GL_APIENTRY
 _es_AlphaFuncx(GLenum func, GLclampx ref)
 {
-   switch(func) {
-   case GL_NEVER:
-   case GL_LESS:
-   case GL_EQUAL:
-   case GL_LEQUAL:
-   case GL_GREATER:
-   case GL_NOTEQUAL:
-   case GL_GEQUAL:
-   case GL_ALWAYS:
-      break;
-   default:
-      _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM,
-                  "glAlphaFuncx(func=0x%x)", func);
-      return;
-   }
-
    _mesa_AlphaFunc(func, (GLclampf) (ref / 65536.0f));
 }