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

Comparing ray/src/hd/rholo3.c (file contents):
Revision 3.7 by gregl, Wed Nov 19 17:05:16 1997 UTC vs.
Revision 3.10 by gregl, Mon Nov 24 15:18:30 1997 UTC

# Line 110 | Line 110 | int    nents;
110                                          lastin = -1;    /* flag full sort */
111                                          break;
112                                  }
113                if (lastin < 0)         /* sort updated list */
114                        sortcomplist();
113                  return;                 /* no display */
114          default:
115                  error(CONSISTENCY, "bundle_set called with unknown operation");
116          }
117 <        n = RPACKSIZ;                           /* allocate packet holder */
118 <        for (i = 0; i < nents; i++)
119 <                if (clist[i].nr > n)
122 <                        n = clist[i].nr;
117 >        if (outdev == NULL)
118 >                return;
119 >        n = 8*RPACKSIZ;                         /* allocate packet holder */
120          p = (PACKHEAD *)malloc(packsiz(n));
121          if (p == NULL)
122                  goto memerr;
# Line 292 | Line 289 | sortcomplist()                 /* fix our list order */
289                                  complist+listpos, complen-listpos);
290                  free((char *)list2);
291          }
295                                        /* check for all finished */
296        if (complist[0].nr <= bnrays(hdlist[complist[0].hd],complist[0].bi)) {
297                free((char *)complist);
298                complist = NULL;
299                complen = 0;
300        }
292                                          /* drop satisfied requests */
293          for (i = complen; i-- && complist[i].nr <=
294                          bnrays(hdlist[complist[i].hd],complist[i].bi); )
# Line 337 | Line 328 | register PACKET        *p;
328          int     ncomp;
329          register int    i;
330  
340        if (complen <= 0)
341                return(0);
331          if (listpos > lastin)           /* time to sort the list */
332                  sortcomplist();
333 +        if (complen <= 0)
334 +                return(0);
335          p->hd = complist[listpos].hd;
336          p->bi = complist[listpos].bi;
337          ncomp = bnrays(hdlist[p->hd],p->bi);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines