diff --git a/src/pbrt/film.cpp b/src/pbrt/film.cpp index a5700a1c2..e7e02bb0b 100644 --- a/src/pbrt/film.cpp +++ b/src/pbrt/film.cpp @@ -882,7 +882,7 @@ SpectralFilm::SpectralFilm(FilmBaseParameters p, Float lambdaMin, Float lambdaMa pixel.weightSums = bucketWeightBuffer; bucketWeightBuffer += nBuckets; pixel.bucketSplats = splatBuffer; - splatBuffer += NSpectrumSamples; + splatBuffer += nBuckets; } }