summaryrefslogtreecommitdiff
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index c7fa7018d3..e1513b8829 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1,4 +1,4 @@
-/* $Id: light.c,v 1.55 2003/03/01 01:50:21 brianp Exp $ */
+/* $Id: light.c,v 1.56 2003/05/30 21:37:19 idr Exp $ */
/*
* Mesa 3-D graphics library
@@ -136,7 +136,7 @@ _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params )
break;
}
case GL_SPOT_EXPONENT:
- if (params[0]<0.0 || params[0]>128.0) {
+ if (params[0]<0.0 || params[0]>ctx->Const.MaxSpotExponent) {
_mesa_error( ctx, GL_INVALID_VALUE, "glLight" );
return;
}