Signed-off-by: Thomas Faller <tfaller1@gmx.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
}
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");