summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_lines.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-05-03 22:13:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-05-03 22:13:32 +0000
commit1b3528fe635242f782fbcdde3ba74b5b7359a362 (patch)
tree180b475fc343edcb7fa18d5ff106bd9ce4f7d231 /src/mesa/swrast/s_lines.c
parent652a14a2153baf011a9347c6a8820e15ebf9aa2d (diff)
interpolate fog valus as floats, not fixed - fixed the swrast fog problem
Diffstat (limited to 'src/mesa/swrast/s_lines.c')
-rw-r--r--src/mesa/swrast/s_lines.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mesa/swrast/s_lines.c b/src/mesa/swrast/s_lines.c
index 8971993ef5..eec354b84a 100644
--- a/src/mesa/swrast/s_lines.c
+++ b/src/mesa/swrast/s_lines.c
@@ -1,4 +1,4 @@
-/* $Id: s_lines.c,v 1.15 2001/03/29 16:50:32 brianp Exp $ */
+/* $Id: s_lines.c,v 1.16 2001/05/03 22:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -239,7 +239,7 @@ static void smooth_rgba_z_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLchan (*pbrgba)[4] = PB->rgba;
@@ -288,7 +288,7 @@ static void general_smooth_ci_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLuint *pbi = PB->index;
PB->mono = GL_FALSE;
@@ -371,7 +371,7 @@ static void general_flat_ci_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
PB_SET_INDEX( PB, vert0->index );
count = PB->count;
@@ -446,7 +446,7 @@ static void general_smooth_rgba_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLchan (*pbrgba)[4] = PB->rgba;
PB->mono = GL_FALSE;
@@ -598,7 +598,7 @@ static void flat_textured_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLfloat *pbs = PB->s[0];
GLfloat *pbt = PB->t[0];
GLfloat *pbu = PB->u[0];
@@ -666,7 +666,7 @@ static void smooth_textured_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLfloat *pbs = PB->s[0];
GLfloat *pbt = PB->t[0];
GLfloat *pbu = PB->u[0];
@@ -747,7 +747,7 @@ static void smooth_multitextured_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLchan (*pbrgba)[4] = PB->rgba;
GLchan (*pbspec)[3] = PB->spec;
@@ -846,7 +846,7 @@ static void flat_multitextured_line( GLcontext *ctx,
GLint *pbx = PB->x;
GLint *pby = PB->y;
GLdepth *pbz = PB->z;
- GLfixed *pbfog = PB->fog;
+ GLfloat *pbfog = PB->fog;
GLchan (*pbrgba)[4] = PB->rgba;
GLchan (*pbspec)[3] = PB->spec;
GLchan *color = (GLchan*) vert1->color;