Commit 52f8b5a7 authored by Richard Laughlin's avatar Richard Laughlin

Fixed a minor bug in the warning message of sobol sampler. It errorneously...

Fixed a minor bug in the warning message of sobol sampler. It errorneously claimed to have rounded up to the non-power of two. It now prints the correct rounded up samplesPerPixel variable.
parent a8c3616c
......@@ -54,7 +54,7 @@ class SobolSampler : public GlobalSampler {
if (!IsPowerOf2(samplesPerPixel))
Warning("Non power-of-two sample count rounded up to %" PRId64
" for SobolSampler.",
samplesPerPixel);
this->samplesPerPixel);
resolution = RoundUpPow2(
std::max(sampleBounds.Diagonal().x, sampleBounds.Diagonal().y));
log2Resolution = Log2Int(resolution);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment