diff options
author | Brian Paul <[email protected]> | 2002-01-28 03:42:28 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-01-28 03:42:28 +0000 |
commit | 7956292a765910077f50352d7cd0174e1e66d26c (patch) | |
tree | 59fa9504eaa4828c7073273d93d42914ce9f5e44 /src/mesa/swrast/s_copypix.c | |
parent | f1e236987829393c81dc86ea19cb49eefe190317 (diff) |
More span improvements. Removed _mesa_write_monocolor_span().
Removed last of span.filled* flags and Klaus's macros.
More simplification of triangle functions.
Diffstat (limited to 'src/mesa/swrast/s_copypix.c')
-rw-r--r-- | src/mesa/swrast/s_copypix.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/mesa/swrast/s_copypix.c b/src/mesa/swrast/s_copypix.c index d418eb54105..718a08200e3 100644 --- a/src/mesa/swrast/s_copypix.c +++ b/src/mesa/swrast/s_copypix.c @@ -1,4 +1,4 @@ -/* $Id: s_copypix.c,v 1.29 2002/01/27 18:32:03 brianp Exp $ */ +/* $Id: s_copypix.c,v 1.30 2002/01/28 03:42:28 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -333,23 +333,6 @@ copy_rgba_pixels(GLcontext *ctx, GLint srcx, GLint srcy, overlapping = regions_overlap(srcx, srcy, destx, desty, width, height, ctx->Pixel.ZoomX, ctx->Pixel.ZoomY); - if (ctx->Depth.Test || ctx->Fog.Enabled) { - /* fill in array of z values */ - GLdepth z = (GLdepth) (ctx->Current.RasterPos[2] * ctx->DepthMax); - GLfloat fog; - - if (ctx->Fog.FogCoordinateSource == GL_FOG_COORDINATE_EXT) - fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterFogCoord); - else - fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterDistance); - - for (i=0;i<width;i++) { - span.zArray[i] = z; - span.fogArray[i] = fog; - } - span.arrayMask |= (SPAN_Z | SPAN_FOG); - } - if (ctx->Depth.Test) _mesa_span_default_z(ctx, &span); if (ctx->Fog.Enabled) |