summaryrefslogtreecommitdiff
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2003-05-30 21:37:14 +0000
committerIan Romanick <idr@us.ibm.com>2003-05-30 21:37:14 +0000
commit882caa18c6c551cbe60f205795b00a6a5361a986 (patch)
treefd8226be22109e848b87d2d7e9df909b2db16026 /src/mesa/main/light.c
parentb2a4aecd806fc7b492534e329d029e002ff07d79 (diff)
Added support for NV_light_max_exponent.
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;
}