--- a/src/raytracermodule.cc Wed Mar 26 00:52:27 2008 +0100
+++ b/src/raytracermodule.cc Wed Mar 26 14:29:21 2008 +0100
@@ -622,7 +622,9 @@
printf("[pyrit] Running ray tracer\n");
((RaytracerObject *)self)->raytracer->getTop()->optimize();
data = (Float *) malloc(w*h*3*sizeof(Float));
- ((RaytracerObject *)self)->raytracer->render(w, h, data);
+ DefaultSampler sampler(data, w, h);
+ ((RaytracerObject *)self)->raytracer->setSampler(&sampler);
+ ((RaytracerObject *)self)->raytracer->render();
if (!data) {
Py_INCREF(Py_None);
return Py_None;