diff -r 4e0955fca797 -r f22952603f29 ccdemos/spheres_shadow.cc --- 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);