-/* $Id: s_linetemp.h,v 1.16 2002/11/15 15:05:04 brianp Exp $ */
/*
* Mesa 3-D graphics library
return;
#ifdef DEPTH_TYPE
- zPtr = (DEPTH_TYPE *) _mesa_zbuffer_address(ctx, x0, y0);
+ zPtr = (DEPTH_TYPE *) _swrast_zbuffer_address(ctx, x0, y0);
#endif
#ifdef PIXEL_ADDRESS
pixelPtr = (PIXEL_TYPE *) PIXEL_ADDRESS(x0,y0);
span.zStep = FloatToFixed(vert1->win[2] - vert0->win[2]) / numPixels;
}
else {
- span.z = vert0->win[2];
- span.zStep = (vert1->win[2] - vert0->win[2]) / numPixels;
+ /* don't use fixed point */
+ span.z = (GLint) vert0->win[2];
+ span.zStep = (GLint) ((vert1->win[2] - vert0->win[2]) / numPixels);
}
}
#endif