ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhd_ogl.c
(Generate patch)

Comparing ray/src/hd/rhd_ogl.c (file contents):
Revision 3.17 by gwlarson, Mon Jun 28 16:30:22 1999 UTC vs.
Revision 3.18 by gwlarson, Mon Jul 19 20:15:16 1999 UTC

# Line 867 | Line 867 | setglpersp()                   /* set perspective view in GL */
867                  dev_zmin = odev.v.vfore;
868          if (odev.v.vaft > FTINY)
869                  dev_zmax = odev.v.vaft;
870 <        if (dev_zmin < dev_zmax/100.)
871 <                dev_zmin = dev_zmax/100.;
870 >        if (dev_zmin*500. < dev_zmax)
871 >                dev_zmax = dev_zmin*500.;
872          setzrat();
873          xmax = dev_zmin * tan(PI/180./2. * odev.v.horiz);
874          xmin = -xmax;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines