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.22 by schorsch, Mon Jul 21 22:30:18 2003 UTC vs.
Revision 3.23 by greg, Fri Sep 19 18:33:05 2003 UTC

# Line 589 | Line 589 | FVECT  direc;
589          else {
590                  glReadPixels(dx,dy, 1,1, GL_DEPTH_COMPONENT,
591                                  GL_FLOAT, &gldepth);
592 +                if (gldepth <= FTINY)
593 +                        return (FHUGE); /* call failed */
594                  dist = mapdepth(gldepth);
595          }
596          if (dist >= .99*FHUGE)
# Line 793 | Line 795 | waitabit()                             /* pause a moment */
795   {
796          struct timespec ts;
797          ts.tv_sec = 0;
798 <        ts.tv_nsec = 50000000;
798 >        ts.tv_nsec = 100000000L;
799          nanosleep(&ts, NULL);
800   }
801  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines