From: Thomas Faller Date: Fri, 29 Apr 2016 16:54:08 +0000 (-0600) Subject: mesa: simplify _mesa_Lightfv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d53cf1ea4cfed9c24a2ff9097c77086f8105ce13;p=mesa.git mesa: simplify _mesa_Lightfv Signed-off-by: Thomas Faller Reviewed-by: Brian Paul --- 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");