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

Comparing ray/src/rt/srcsupp.c (file contents):
Revision 2.11 by greg, Wed Apr 23 00:52:34 2003 UTC vs.
Revision 2.13 by greg, Wed Dec 31 02:03:08 2003 UTC

# Line 19 | Line 19 | static const char      RCSid[] = "$Id$";
19  
20   #include  "face.h"
21  
22 < #define SRCINC          4               /* realloc increment for array */
22 > #define SRCINC          8               /* realloc increment for array */
23  
24   SRCREC  *source = NULL;                 /* our list of sources */
25   int  nsources = 0;                      /* the number of sources */
# Line 59 | Line 59 | newsource()                    /* allocate new source in our array */
59          if (source == NULL)
60                  return(-1);
61          source[nsources].sflags = 0;
62 <        source[nsources].nhits = 1;
63 <        source[nsources].ntests = 2;    /* initial hit probability = 1/2 */
62 >        source[nsources].nhits = 0;
63 >        source[nsources].ntests = 1;    /* initial hit probability = 0 */
64 > #if SHADCACHE
65 >        source[nsources].obscache = NULL;
66 > #endif
67          return(nsources++);
68   }
69  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines