summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-09-20 16:17:16 -0700
committerIan Romanick <[email protected]>2012-08-20 16:06:32 -0700
commitbf03589882ee4b36a9c3fb618a1d5f6b567163db (patch)
tree2450b1c479f3bdde80fa41bd61ab36b0df8faba6 /src
parent8f55d83569aa364ac7c6928c30b13d846d187389 (diff)
mesa/es: Remove redundant alpha function validation
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/APIspec.xml10
-rw-r--r--src/mesa/main/es1_conversion.c16
2 files changed, 0 insertions, 26 deletions
diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml
index c3066af5f2d..c0e6bc4e8dc 100644
--- a/src/mesa/main/APIspec.xml
+++ b/src/mesa/main/APIspec.xml
@@ -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">
diff --git a/src/mesa/main/es1_conversion.c b/src/mesa/main/es1_conversion.c
index 12cbcd4070f..ff5e45176e2 100644
--- a/src/mesa/main/es1_conversion.c
+++ b/src/mesa/main/es1_conversion.c
@@ -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));
}