summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorThomas Faller <[email protected]>2016-04-29 10:54:08 -0600
committerBrian Paul <[email protected]>2016-04-29 11:08:01 -0600
commitd53cf1ea4cfed9c24a2ff9097c77086f8105ce13 (patch)
tree01ad5b16d1ad0f4e04dba89e551a173eb35292d8 /src/mesa
parentaa6f88f891d6e070ea8fa251493e3d8ab2af98aa (diff)
mesa: simplify _mesa_Lightfv
Signed-off-by: Thomas Faller <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/light.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 14b4b04162b..4a8dee3f649 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -250,17 +250,7 @@ _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params )
}
break;
case GL_CONSTANT_ATTENUATION:
- if (params[0] < 0.0F) {
- _mesa_error(ctx, GL_INVALID_VALUE, "glLight");
- return;
- }
- break;
case GL_LINEAR_ATTENUATION:
- if (params[0] < 0.0F) {
- _mesa_error(ctx, GL_INVALID_VALUE, "glLight");
- return;
- }
- break;
case GL_QUADRATIC_ATTENUATION:
if (params[0] < 0.0F) {
_mesa_error(ctx, GL_INVALID_VALUE, "glLight");