aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_zoom.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-05-03 22:13:32 +0000
committerBrian Paul <[email protected]>2001-05-03 22:13:32 +0000
commit1b3528fe635242f782fbcdde3ba74b5b7359a362 (patch)
tree180b475fc343edcb7fa18d5ff106bd9ce4f7d231 /src/mesa/swrast/s_zoom.c
parent652a14a2153baf011a9347c6a8820e15ebf9aa2d (diff)
interpolate fog valus as floats, not fixed - fixed the swrast fog problem
Diffstat (limited to 'src/mesa/swrast/s_zoom.c')
-rw-r--r--src/mesa/swrast/s_zoom.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/swrast/s_zoom.c b/src/mesa/swrast/s_zoom.c
index daace6920fd..74053d0a5b2 100644
--- a/src/mesa/swrast/s_zoom.c
+++ b/src/mesa/swrast/s_zoom.c
@@ -1,4 +1,4 @@
-/* $Id: s_zoom.c,v 1.4 2001/03/12 00:48:42 gareth Exp $ */
+/* $Id: s_zoom.c,v 1.5 2001/05/03 22:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -46,7 +46,7 @@
void
_mesa_write_zoomed_rgba_span( GLcontext *ctx,
GLuint n, GLint x, GLint y, const GLdepth z[],
- const GLfixed *fog,
+ const GLfloat *fog,
CONST GLchan rgba[][4], GLint y0 )
{
GLint m;
@@ -54,7 +54,7 @@ _mesa_write_zoomed_rgba_span( GLcontext *ctx,
GLint i, j, skipcol;
GLchan zrgba[MAX_WIDTH][4]; /* zoomed pixel colors */
GLdepth zdepth[MAX_WIDTH]; /* zoomed depth values */
- GLfixed zfog[MAX_WIDTH]; /* zoomed fog values */
+ GLfloat zfog[MAX_WIDTH]; /* zoomed fog values */
GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH );
const GLuint *srcRGBA32 = (const GLuint *) rgba;
GLuint *dstRGBA32 = (GLuint *) zrgba;
@@ -153,7 +153,7 @@ _mesa_write_zoomed_rgba_span( GLcontext *ctx,
void
_mesa_write_zoomed_rgb_span( GLcontext *ctx,
GLuint n, GLint x, GLint y, const GLdepth z[],
- const GLfixed *fog,
+ const GLfloat *fog,
CONST GLchan rgb[][3], GLint y0 )
{
GLint m;
@@ -161,7 +161,7 @@ _mesa_write_zoomed_rgb_span( GLcontext *ctx,
GLint i, j, skipcol;
GLchan zrgba[MAX_WIDTH][4]; /* zoomed pixel colors */
GLdepth zdepth[MAX_WIDTH]; /* zoomed depth values */
- GLfixed zfog[MAX_WIDTH]; /* zoomed fog values */
+ GLfloat zfog[MAX_WIDTH]; /* zoomed fog values */
GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH );
/* compute width of output row */
@@ -266,7 +266,7 @@ _mesa_write_zoomed_rgb_span( GLcontext *ctx,
void
_mesa_write_zoomed_index_span( GLcontext *ctx,
GLuint n, GLint x, GLint y, const GLdepth z[],
- const GLfixed *fog,
+ const GLfloat *fog,
const GLuint indexes[], GLint y0 )
{
GLint m;
@@ -274,7 +274,7 @@ _mesa_write_zoomed_index_span( GLcontext *ctx,
GLint i, j, skipcol;
GLuint zindexes[MAX_WIDTH]; /* zoomed color indexes */
GLdepth zdepth[MAX_WIDTH]; /* zoomed depth values */
- GLfixed zfog[MAX_WIDTH]; /* zoomed fog values */
+ GLfloat zfog[MAX_WIDTH]; /* zoomed fog values */
GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH );
/* compute width of output row */