src/sampler.cc
branchpyrit
changeset 94 4c8abb8977dc
parent 93 96d65f841791
child 95 ca7d4c665531
equal deleted inserted replaced
93:96d65f841791 94:4c8abb8977dc
   301 	s->osa_samp = osa_samp;
   301 	s->osa_samp = osa_samp;
   302 
   302 
   303 	return true;
   303 	return true;
   304 }
   304 }
   305 
   305 
   306 void DefaultSampler::saveSample(Sample &samp, Colour &col)
   306 void DefaultSampler::saveSample(const Sample &samp, const Colour &col)
   307 {
   307 {
   308 	Float *buf = pixmap.getFloatData()
   308 	Float *buf = pixmap.getFloatData()
   309 		+ 3*(samp.sy * pixmap.getWidth() + samp.sx);
   309 		+ 3*(samp.sy * pixmap.getWidth() + samp.sx);
   310 	if (phase == 2 && oversample)
   310 	if (phase == 2 && oversample)
   311 	{
   311 	{