+ try
+ {
+ ambient_occlusion = new GL::AmbientOcclusion(w, h, 100);
+ pipeline.add_postprocessor(*ambient_occlusion);
+ }
+ catch(...)
+ {
+ delete ambient_occlusion;
+ ambient_occlusion = 0;
+ }
+
+ try
+ {
+ colorcurve = new GL::ColorCurve;
+ colorcurve->set_srgb();
+ pipeline.add_postprocessor(*colorcurve);
+ }
+ catch(...)
+ {
+ delete colorcurve;
+ colorcurve = 0;
+ }