-/* $Id: light.c,v 1.11 2000/01/13 00:29:02 brianp Exp $ */
+/* $Id: light.c,v 1.13 2000/06/19 14:35:17 keithw Exp $ */
/*
* Mesa 3-D graphics library
#endif
+/* XXX this is a bit of a hack needed for compilation within XFree86 */
+#ifndef FLT_MIN
+#define FLT_MIN 1e-37
+#endif
+
void
_mesa_ShadeModel( GLenum mode )
SUB_3V( tmp, color, mat->Ambient );
ACC_SCALE_3V( ctx->Light.BaseColor[1], ctx->Light.Model.Ambient, tmp);
foreach (light, list) {
- ACC_SCALE_3V( ctx->Light.BaseColor[0], light->Ambient, tmp );
+ ACC_SCALE_3V( ctx->Light.BaseColor[1], light->Ambient, tmp );
}
COPY_4FV( mat->Ambient, color );
}