mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 06:10:28 +01:00
fix GL_BACK color material bug
This commit is contained in:
parent
e4b65b6e59
commit
2af2c2b556
1 changed files with 2 additions and 2 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue