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

Comparing ray/src/util/glaresrc.c (file contents):
Revision 1.10 by greg, Thu Mar 21 17:11:50 1991 UTC vs.
Revision 1.11 by greg, Wed Apr 10 15:59:10 1991 UTC

# Line 80 | Line 80 | analyze()                      /* analyze our scene */
80          }
81          free((char *)spanbr);
82          close_allsrcs();
83        absorb_specks();
83   }
84  
85  
# Line 340 | Line 339 | absorb_specks()                        /* eliminate too-small sources */
339                  fprintf(stderr, "%s: absorbing small sources...\n", progname);
340          head.next = donelist;
341          last = &head;
342 <        for (this = donelist; this != NULL; this = this->next)
342 >        for (this = head.next; this != NULL; this = this->next)
343                  if (TOOSMALL(this)) {
344                          last->next = this->next;
345 <                        buddy = findbuddy(this, donelist);
345 >                        buddy = findbuddy(this, head.next);
346                          if (buddy != NULL)
347                                  mergesource(buddy, this);
348                          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines