mesa/es: Remove redundant alpha function validation
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
8f55d83569
commit
bf03589882
|
@ -882,16 +882,6 @@
|
|||
<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">
|
||||
|
|
|
@ -38,22 +38,6 @@
|
|||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue