src/raytracermodule.cc
branchpyrit
changeset 47 320d5d466864
parent 44 3763b26244f0
child 48 a4913301c626
--- 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;