Commit fc161cc6 authored by Matt Pharr's avatar Matt Pharr Committed by GitHub

Merge pull request #147 from rcythr/bugfix/sobolSamplerWarning

Fixed a minor bug in the warning message of sobol sampler. 
parents d1531495 52f8b5a7
......@@ -54,7 +54,7 @@ class SobolSampler : public GlobalSampler {
if (!IsPowerOf2(samplesPerPixel))
Warning("Non power-of-two sample count rounded up to %" PRId64
" for SobolSampler.",
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