diff -r 6493fb65f0b1 -r 320d5d466864 ccdemos/textures.cc --- a/ccdemos/textures.cc Wed Mar 26 00:52:27 2008 +0100 +++ b/ccdemos/textures.cc Wed Mar 26 14:29:21 2008 +0100 @@ -279,7 +279,9 @@ rt.setOversample(2); rt.setSubsample(1); rt.ambientocclusion(300, 5.0, 0.5); - rt.render(w, h, fdata); + DefaultSampler sampler(fdata, w, h); + rt.setSampler(&sampler); + rt.render(); struct image *img; new_image(&img, w, h, 3);