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

Comparing ray/src/rt/rc3.c (file contents):
Revision 2.22 by greg, Thu Aug 18 00:52:48 2016 UTC vs.
Revision 2.24 by greg, Wed Sep 9 21:28:19 2020 UTC

# Line 89 | Line 89 | free_binq(BINQ *bp)
89   /*      for (i = nmods; i--; )
90                  memset(bp->mca[i]->cbin, 0, sizeof(DCOLOR)*bp->mca[i]->nbins);
91   */
92 +        if (bp->next != NULL)
93 +                error(CONSISTENCY, "free_binq() handed list");
94          bp->ndx = 0;
95          bp->next = free_bq;             /* push onto free list */
96          free_bq = bp;
# Line 442 | Line 444 | parental_loop()
444                          }
445                          put_zero_record(++lastray);
446                  }
447 <                if (raysleft && !--raysleft)
447 >                if (!morays())
448                          break;                          /* preemptive EOI */
449          }
450          while (next_child_nq(1) >= 0)           /* empty results queue */
# Line 527 | Line 529 | feeder_loop()
529                                  lastdone = lastray = 0;
530                          ninq = 0;
531                  }
532 <                if (raysleft && !--raysleft)
532 >                if (!morays())
533                          break;                          /* preemptive EOI */
534          }
535          if (ninq) {                             /* polish off input */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines