ccdemos/spheres_shadow.cc
branchpyrit
changeset 20 f22952603f29
parent 19 4e0955fca797
child 22 76b7bd51d64a
--- a/ccdemos/spheres_shadow.cc	Mon Nov 26 23:12:40 2007 +0100
+++ b/ccdemos/spheres_shadow.cc	Thu Nov 29 18:30:16 2007 +0100
@@ -35,7 +35,8 @@
 
 	int w = 800;
 	int h = 600;
-	float *fdata = rt.render(w, h);
+	float *fdata = (float *) malloc(w*h*3*sizeof(float));
+	rt.render(w, h, fdata);
 
 	struct image *img;
 	new_image(&img, w, h, 3);