From d53cf1ea4cfed9c24a2ff9097c77086f8105ce13 Mon Sep 17 00:00:00 2001 From: Thomas Faller Date: Fri, 29 Apr 2016 10:54:08 -0600 Subject: [PATCH] mesa: simplify _mesa_Lightfv Signed-off-by: Thomas Faller Reviewed-by: Brian Paul --- src/mesa/main/light.c | 10 ---------- 1 file changed, 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"); -- 2.30.2