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

Comparing ray/src/rt/ambcomp.c (file contents):
Revision 2.20 by greg, Fri Oct 28 16:16:33 2005 UTC vs.
Revision 2.21 by greg, Mon Dec 31 18:19:42 2007 UTC

# Line 204 | Line 204 | doambient(                             /* compute ambient component */
204                          else
205                                  addcolor(acol, dp->v);
206                  }
207 <        if (!divcnt)
207 >        if (!divcnt) {
208 >                if (div != NULL)
209 >                        free((void *)div);
210                  return(0.0);            /* no samples taken */
211 +        }
212          if (divcnt < hemi.nt*hemi.np) {
213                  pg = dg = NULL;         /* incomplete sampling */
214                  hemi.ns = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines