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

Comparing ray/src/hd/rhd_glx.c (file contents):
Revision 3.30 by schorsch, Mon Jul 21 22:30:18 2003 UTC vs.
Revision 3.31 by greg, Fri Sep 19 18:33:04 2003 UTC

# Line 543 | Line 543 | FVECT  direc;
543          if (dx<0 | dx>=odev.hres | dy<0 | dy>=odev.vres)
544                  return(FHUGE);
545          glReadPixels(dx,dy, 1,1, GL_DEPTH_COMPONENT,GL_FLOAT, &gldepth);
546 +        if (gldepth <= FTINY)
547 +                return (FHUGE); /* call failed */
548          dist = mapdepth(gldepth);
549          if (dist >= .99*FHUGE)
550                  return(FHUGE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines