diff --git a/src/integrators/misc/errctrl.cpp b/src/integrators/misc/errctrl.cpp index f3d526ab..96d3a2fe 100644 --- a/src/integrators/misc/errctrl.cpp +++ b/src/integrators/misc/errctrl.cpp @@ -154,7 +154,7 @@ public: block->snapshot(x, y); while (!stop) { - rRec.newQuery(RadianceQueryRecord::ERadiance); + rRec.newQuery(RadianceQueryRecord::ECameraRay); if (needsLensSample) lensSample = rRec.nextSample2D(); sample = rRec.nextSample2D();