From ad2ac216fa0cbebc36530bf9e5256e902710b892 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 24 Nov 2000 10:25:05 +0000 Subject: Support for swappable t&l modules, including an example one in the FX driver (enable with FX_ALLOW_VTXFMT=t). --- src/mesa/main/rastpos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/rastpos.c') diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c index 63f4e5aa49..9f6a49330d 100644 --- a/src/mesa/main/rastpos.c +++ b/src/mesa/main/rastpos.c @@ -1,4 +1,4 @@ -/* $Id: rastpos.c,v 1.15 2000/11/22 07:32:17 joukj Exp $ */ +/* $Id: rastpos.c,v 1.16 2000/11/24 10:25:05 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -168,7 +168,7 @@ static void gl_shade_rastpos( GLcontext *ctx, ACC_SCALE_SCALAR_3V(contrib, n_dot_VP, light->_MatDiffuse[0]); diffuse += n_dot_VP * light->_dli * attenuation; - if (light->_IsMatSpecular[0]) { + { if (ctx->Light.Model.LocalViewer) { GLfloat v[3]; COPY_3V(v, vertex); -- cgit v1.2.3