summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-06-19 14:35:17 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-06-19 14:35:17 +0000
commit2af2c2b556bbac7d2d6bab416af14aecef594eea (patch)
tree9e6a2afd1fd9eec34b12bb4acacc44acdfdc765f
parente4b65b6e59d3103c2e63c0b1ae6f04520dc780e5 (diff)
fix GL_BACK color material bug
-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 a6696b1e1a..f7278c2c31 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1,4 +1,4 @@
-/* $Id: light.c,v 1.12 2000/01/31 23:33:53 brianp Exp $ */
+/* $Id: light.c,v 1.13 2000/06/19 14:35:17 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -693,7 +693,7 @@ void gl_update_color_material( GLcontext *ctx,
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 );
}