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

Comparing ray/src/hd/rhcopy.c (file contents):
Revision 3.11 by gwlarson, Thu Nov 12 15:06:00 1998 UTC vs.
Revision 3.13 by gwlarson, Mon Feb 1 10:22:46 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 175 | Line 175 | COLR   cv;
175                  bi = hdbindex(hp, gc);          /* check for duplicates */
176                  if (checkrepeats && (bp = hdgetbeam(hp, bi)) != NULL) {
177                          for (n = bp->nrm, rv = hdbray(bp); n--; rv++)
178 <                                if (rv->d == dc &&
178 >                                if ((hp->priv != NULL || rv->d == dc) &&
179                                                  rv->r[0][0] == rr[0][0] &&
180                                                  rv->r[0][1] == rr[0][1] &&
181                                                  rv->r[1][0] == rr[1][0] &&
# Line 236 | Line 236 | int    *bq, nb;
236                  }
237                  hdfreebeam(hp, bq[i]);          /* free the beam */
238          }
239 <        hdflush(NULL);                  /* write & free clump */
239 >        hdfreebeam(NULL, 0);                    /* write & free clump */
240          return(0);
241   }
242  
# Line 253 | Line 253 | char   *hdf;
253                  hddone(hdlist[noutsects]);              /* free the section */
254          }
255          close(fd);                      /* close input file */
256 +        hdflush(NULL);                  /* flush output */
257   }
258  
259  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines