På Mon, 14 Aug 2006 17:05:25 +0200, skrev Robert Osfield <[EMAIL PROTECTED]>:

On 8/14/06, Joakim Simonsson <[EMAIL PROTECTED]> wrote:

Hmm. This have worked perfectly with previous versions (pre 1.1).

In 1.0 the set up of the maximum number of graphics contexts wasn't
correct, this caused the UnrefImageOnApply feature of osg::Texture not
to function.  Once this was fixed the osg::Image will be unref'd
correctly.

The Optimizer may or may not be a issue revealled by this bug fix. One
way to find out is to disable the OPTIMIZE_TEXTURE_SETTINGS
optimization pass which is done by default - its this which is setting
the UnrefImageOnApply.


This is how I call the optimizer function: optimizer.optimize(viewer->getTopMostSceneData(), osgUtil::Optimizer::SHARE_DUPLICATE_STATE), so only the "if (options & SHARE_DUPLICATE_STATE)"-clause is exucuted in Optimizer. So OPTIMIZE_TEXTURE_SETTINGS is not handled in my app.


--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to