Hello Dario,
Yes, I've made a Visitor to setUnRefImageDataAfterApply(false) for all textures properties and now works like charm.
If you want to have less code to maintain, you could just use the osgUtil::Optimizer::TextureVisitor like this:
osgUtil::Optimizer::TextureVisitor visitor(true, false, false, false, false, 0.0);
(check the names of the arguments in the header to see what they mean... But it works well, we've used it before)
J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org