--- ray/src/hd/rhd_ogl.c 1999/01/05 18:16:17 3.15 +++ ray/src/hd/rhd_ogl.c 1999/07/19 20:15:16 3.18 @@ -22,7 +22,6 @@ static char SCCSid[] = "$SunId$ SGI"; #include "standard.h" -#include #include #include #ifdef STEREO @@ -868,8 +867,8 @@ setglpersp() /* set perspective view in GL */ dev_zmin = odev.v.vfore; if (odev.v.vaft > FTINY) dev_zmax = odev.v.vaft; - if (dev_zmin < dev_zmax/100.) - dev_zmin = dev_zmax/100.; + if (dev_zmin*500. < dev_zmax) + dev_zmax = dev_zmin*500.; setzrat(); xmax = dev_zmin * tan(PI/180./2. * odev.v.horiz); xmin = -xmax; @@ -945,7 +944,7 @@ wipeclean() /* prepare for redraw */ viewflags &= ~VWCHANGE; /* change noted */ } else if (viewflags & VWSTEADY) odRedrawAll(); - setglpersp(&odev.v); /* reset view & clipping planes */ + setglpersp(); /* reset view & clipping planes */ }