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

Comparing ray/src/rt/t_data.c (file contents):
Revision 2.4 by greg, Wed Jan 12 16:46:53 1994 UTC vs.
Revision 2.7 by greg, Wed Mar 5 16:16:53 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  t_data.c - routine for stored textures
9 *
10 *     6/4/86
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  "ray.h"
11  
12   #include  "data.h"
# Line 55 | Line 52 | RAY  *r;
52          errno = 0;
53          for (i = 0; i < nv; i++)
54                  pt[i] = evalue(mf->ep[i]);
55 <        if (errno)
55 >        if (errno == EDOM || errno == ERANGE)
56                  goto computerr;
57          dval[0] = datavalue(dp, pt);
58          for (i = 1; i < 3; i++) {
# Line 67 | Line 64 | RAY  *r;
64          errno = 0;
65          for (i = 0; i < 3; i++)
66                  disp[i] = funvalue(m->oargs.sarg[i], 3, dval);
67 <        if (errno)
67 >        if (errno == EDOM || errno == ERANGE)
68                  goto computerr;
69          if (mf->f != &unitxf)
70                  multv3(disp, disp, mf->f->xfm);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines