diff options
author | Ian Romanick <[email protected]> | 2003-05-30 21:37:14 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2003-05-30 21:37:14 +0000 |
commit | 882caa18c6c551cbe60f205795b00a6a5361a986 (patch) | |
tree | fd8226be22109e848b87d2d7e9df909b2db16026 /src/mesa/main/light.c | |
parent | b2a4aecd806fc7b492534e329d029e002ff07d79 (diff) |
Added support for NV_light_max_exponent.
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r-- | src/mesa/main/light.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index c7fa7018d3f..e1513b88296 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; } |