--- ray/src/util/rttree_reduce.c 2012/03/25 15:23:55 2.7 +++ ray/src/util/rttree_reduce.c 2013/10/03 03:36:11 2.8 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rttree_reduce.c,v 2.7 2012/03/25 15:23:55 greg Exp $"; +static const char RCSid[] = "$Id: rttree_reduce.c,v 2.8 2013/10/03 03:36:11 greg Exp $"; #endif /* * A utility called by genBSDF.pl to reduce tensor tree samples and output @@ -295,25 +295,26 @@ load_data() static void do_reciprocity() { - float *v1p, *v2p; + const int siz = 1<>1; ix++) + for (ox = 0; ox < siz; ox++) + for (oy = 0; oy < siz>>1; oy++) { v1p = &dval3(ix,ox,oy); - v2p = &dval3(ix,ox,(1<