--- ray/src/px/pinterp.c 2013/05/20 21:52:06 2.45 +++ ray/src/px/pinterp.c 2018/01/24 04:39:52 2.46 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pinterp.c,v 2.45 2013/05/20 21:52:06 greg Exp $"; +static const char RCSid[] = "$Id: pinterp.c,v 2.46 2018/01/24 04:39:52 greg Exp $"; #endif /* * Interpolate and extrapolate pictures with different view parameters. @@ -757,8 +757,7 @@ movepixel( /* reposition image point */ pt[0] += tdir[0]*pos[2]; pt[1] += tdir[1]*pos[2]; pt[2] += tdir[2]*pos[2]; - viewloc(pos, &ourview, pt); - if (pos[2] <= 0) + if (viewloc(pos, &ourview, pt) <= 0) return(0); } if ((pos[0] < 0) | (pos[0] >= 1-FTINY) | (pos[1] < 0) | (pos[1] >= 1-FTINY))