summaryrefslogtreecommitdiff
path: root/src/mesa/main/rastpos.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-05-01 07:25:41 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-05-01 07:25:41 +0000
commitf4a003c3ca15513d69ac07af6403b54b55003af3 (patch)
tree02542ec38be022c5d045013909fb4d8fde0cbf9e /src/mesa/main/rastpos.c
parent0e14d6d68eae5b9a3f8d21d63d8129db947e3580 (diff)
fix from Jouk
Diffstat (limited to 'src/mesa/main/rastpos.c')
-rw-r--r--src/mesa/main/rastpos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c
index 79ec481267..388f8f3e28 100644
--- a/src/mesa/main/rastpos.c
+++ b/src/mesa/main/rastpos.c
@@ -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;