diff --git a/src/integrators/misc/multichannel.cpp b/src/integrators/misc/multichannel.cpp index b48b330f..6429db91 100644 --- a/src/integrators/misc/multichannel.cpp +++ b/src/integrators/misc/multichannel.cpp @@ -179,7 +179,7 @@ public: block->clear(); uint32_t queryType = RadianceQueryRecord::ESensorRay; - Float *temp = (Float *) alloca(sizeof(Float) * (m_integrators.size() * SPECTRUM_SAMPLES + 1)); + Float *temp = (Float *) alloca(sizeof(Float) * (m_integrators.size() * SPECTRUM_SAMPLES + 2)); for (size_t i = 0; igetOffset());