diff options
author | Brian Paul <[email protected]> | 2003-02-25 19:25:52 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-02-25 19:25:52 +0000 |
commit | 4039cb8ca82d59451a6de8902fe35e693cdca3ba (patch) | |
tree | 0ea4e7518923243d8d49064719c1206f16c63640 /src/mesa/swrast/s_linetemp.h | |
parent | b10c434a8f1b760e5a5516729761944d3e84d894 (diff) |
casts to silence g++ warnings
Diffstat (limited to 'src/mesa/swrast/s_linetemp.h')
-rw-r--r-- | src/mesa/swrast/s_linetemp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_linetemp.h b/src/mesa/swrast/s_linetemp.h index d0f8d6f5bdb..0bea948d355 100644 --- a/src/mesa/swrast/s_linetemp.h +++ b/src/mesa/swrast/s_linetemp.h @@ -1,4 +1,4 @@ -/* $Id: s_linetemp.h,v 1.16 2002/11/15 15:05:04 brianp Exp $ */ +/* $Id: s_linetemp.h,v 1.17 2003/02/25 19:26:01 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -268,8 +268,9 @@ NAME( GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1 ) 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 |