--- ray/src/gen/mksource.c 2005/07/30 17:01:30 2.2 +++ ray/src/gen/mksource.c 2005/09/19 12:32:12 2.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mksource.c,v 2.2 2005/07/30 17:01:30 greg Exp $"; +static const char RCSid[] = "$Id: mksource.c,v 2.3 2005/09/19 12:32:12 schorsch Exp $"; #endif /* * Generate distant sources corresponding to the given environment map @@ -7,6 +7,7 @@ static const char RCSid[] = "$Id: mksource.c,v 2.2 200 #include "ray.h" #include "random.h" +#include "resolu.h" #define NTRUNKBR 4 /* number of branches at trunk */ #define NTRUNKVERT 4 /* number of vertices at trunk */ @@ -207,6 +208,7 @@ geosample(int nsamps) return(tree); memerr: error(SYSTEM, "out of memory in geosample()"); + return NULL; /* dummy return */ } /* Compute leaf exponent histogram */ @@ -385,7 +387,6 @@ mksources(TRITREE *samptree, double thresh, double max LOSTLIGHT *lostlightlist = NULL; int emax; TRITREE *startleaf; - COLOR cval; double growstep; FVECT curcent; double currad;