src/raytracer.cc
branchpyrit
changeset 12 f4fcabf05785
parent 11 4d192e13ee84
child 14 fc18ac4833f2
--- a/src/raytracer.cc	Fri Nov 23 16:14:38 2007 +0100
+++ b/src/raytracer.cc	Sat Nov 24 21:55:41 2007 +0100
@@ -212,7 +212,7 @@
 
 	printf("* building kd-tree\n");
 	//cout << endl;
-	static_cast<KdTree*>(top)->optimize();
+	top->optimize();
 	//static_cast<KdTree*>(top)->save(cout);
 	//cout << endl;