23 |
|
#include "pmapdiag.h" |
24 |
|
#include "rcontrib.h" |
25 |
|
#include "otypes.h" |
26 |
– |
#include <sys/mman.h> |
27 |
– |
#include <sys/wait.h> |
26 |
|
|
27 |
|
|
28 |
|
|
81 |
|
|
82 |
|
if (contribPhotonMapping) { |
83 |
|
if (contribPmap -> maxGather < numSrcContrib) { |
84 |
+ |
#if 0 |
85 |
|
/* Adjust density estimate bandwidth if lower than modifier |
86 |
|
* count, otherwise contributions are missing */ |
87 |
|
error(WARNING, "contrib density estimate bandwidth too low, " |
88 |
|
"adjusting to modifier count"); |
89 |
|
contribPmap -> maxGather = numSrcContrib; |
90 |
+ |
#else |
91 |
+ |
/* Warn if density estimate bandwidth is lower than modifier |
92 |
+ |
* count, since some contributions will be missing */ |
93 |
+ |
error(WARNING, "photon density estimate bandwidth too low," |
94 |
+ |
" contributions may be underestimated"); |
95 |
+ |
#endif |
96 |
|
} |
97 |
|
|
98 |
|
/* Sanity check */ |