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

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 2.17 by greg, Mon Mar 3 00:10:51 2003 UTC vs.
Revision 2.18 by greg, Wed Mar 5 16:16:53 2003 UTC

# Line 160 | Line 160 | double  omega;                 /* light source size */
160                  dtmp = funvalue(sa[0], 5, vldx);
161                  setcolor(ctmp, dtmp, dtmp, dtmp);
162          }
163 <        if (errno) {
163 >        if (errno == EDOM || errno == ERANGE) {
164                  objerror(np->mp, WARNING, "compute error");
165                  return;
166          }
# Line 251 | Line 251 | register RAY  *r;
251          setcolor(ctmp, evalue(mf->ep[3]),
252                          evalue(mf->ep[4]),
253                          evalue(mf->ep[5]));
254 <        if (errno)
254 >        if (errno == EDOM || errno == ERANGE)
255                  objerror(m, WARNING, "compute error");
256          else if (rayorigin(&sr, r, TRANS, bright(ctmp)) == 0) {
257                  if (!(r->crtype & SHADOW) &&
# Line 280 | Line 280 | register RAY  *r;
280          setcolor(ctmp, evalue(mf->ep[0]),
281                          evalue(mf->ep[1]),
282                          evalue(mf->ep[2]));
283 <        if (errno)
283 >        if (errno == EDOM || errno == ERANGE)
284                  objerror(m, WARNING, "compute error");
285          else if (rayorigin(&sr, r, REFLECTED, bright(ctmp)) == 0) {
286                  for (i = 0; i < 3; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines