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

Comparing ray/src/hd/holofile.c (file contents):
Revision 3.26 by gwlarson, Fri Sep 18 16:47:27 1998 UTC vs.
Revision 3.27 by gwlarson, Wed Nov 4 16:44:16 1998 UTC

# Line 166 | Line 166 | HDGRID *hproto;                /* holodeck section grid */
166          biglob(hp)->nrd = rtrunc = 0;
167          for (n = hproto == NULL ? nbeams(hp) : 0; n > 0; n--)
168                  if (hp->bi[n].nrd)
169 <                        if (hp->bi[n].fo + hp->bi[n].nrd > fpos) {
169 >                        if (hp->bi[n].fo+hp->bi[n].nrd*sizeof(RAYVAL) > fpos) {
170                                  rtrunc += hp->bi[n].nrd;
171                                  hp->bi[n].nrd = 0;
172                          } else
# Line 743 | Line 743 | register HOLO  *hp;            /* NULL means clean up all */
743                  return;
744          }
745                                          /* flush all data and free memory */
746 <        hdflush(hp);
746 >        hdfreebeam(hp, 0);
747 >        hdsync(hp, 0);
748                                          /* release fragment resources */
749          hdrelease(hp->fd);
750                                          /* remove hp from active list */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines