mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
fix from Jouk
This commit is contained in:
parent
0e14d6d68e
commit
f4a003c3ca
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: rastpos.c,v 1.23 2001/04/28 08:39:17 keithw Exp $ */
|
||||
/* $Id: rastpos.c,v 1.24 2001/05/01 07:25:41 keithw Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -105,13 +105,13 @@ shade_rastpos(GLcontext *ctx,
|
|||
GLuint *index)
|
||||
{
|
||||
GLfloat (*base)[3] = ctx->Light._BaseColor;
|
||||
const GLchan *sumA = ctx->Light._BaseAlpha;
|
||||
const GLfloat *sumA = ctx->Light._BaseAlpha;
|
||||
struct gl_light *light;
|
||||
GLfloat color[4];
|
||||
GLfloat diffuse = 0, specular = 0;
|
||||
|
||||
COPY_3V(color, base[0]);
|
||||
color[3] = CHAN_TO_FLOAT( sumA[0] );
|
||||
color[3] = sumA[0];
|
||||
|
||||
foreach (light, &ctx->Light.EnabledList) {
|
||||
GLfloat n_dot_h;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue