From 882caa18c6c551cbe60f205795b00a6a5361a986 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 30 May 2003 21:37:14 +0000 Subject: Added support for NV_light_max_exponent. --- src/mesa/main/api_noop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/api_noop.c') diff --git a/src/mesa/main/api_noop.c b/src/mesa/main/api_noop.c index ff96605f1b..f15e3b6142 100644 --- a/src/mesa/main/api_noop.c +++ b/src/mesa/main/api_noop.c @@ -1,4 +1,4 @@ -/* $Id: api_noop.c,v 1.12 2003/03/01 01:50:20 brianp Exp $ */ +/* $Id: api_noop.c,v 1.13 2003/05/30 21:37:14 idr Exp $ */ /* * Mesa 3-D graphics library @@ -130,11 +130,11 @@ void _mesa_noop_Materialfv( GLenum face, GLenum pname, const GLfloat *params ) COPY_4FV( mat[1].Emission, params ); } if (bitmask & FRONT_SHININESS_BIT) { - GLfloat shininess = CLAMP( params[0], 0.0F, 128.0F ); + GLfloat shininess = CLAMP( params[0], 0.0F, ctx->Const.MaxShininess ); mat[0].Shininess = shininess; } if (bitmask & BACK_SHININESS_BIT) { - GLfloat shininess = CLAMP( params[0], 0.0F, 128.0F ); + GLfloat shininess = CLAMP( params[0], 0.0F, ctx->Const.MaxShininess ); mat[1].Shininess = shininess; } if (bitmask & FRONT_INDEXES_BIT) { -- cgit v1.2.3