[osg-users] Removing objects with shared GL state from scene graph

Robert Osfield robert.osfield at gmail.com
Tue Jul 2 10:15:37 PDT 2019


Hi Chris,

On Tue, 2 Jul 2019 at 15:43, Chris Djali <krizdjali at gmail.com> wrote:

> If that's the case, though, it seems like relying on it for correctness
> isn't a good strategy - surely all these release calls exist because
> there's some chance an implementation detail might change at some point and
> make them necessary.
>

I don't yet get the leak part.  The Font class manages all of it's objects
via ref_ptr<>, they all will be deleted automatically once the Font get
deleted.

Is it simply that the Font's that are cached within the osgDB::ObjectCache
that is keeping Font's around independent of the scene graph objects that
are coming and going.

You can explicitly flush the ObjectCache.

Again, what makes you think there is a leak, are you using some debug tool
to determine this? If so, which one?

I am still at the point of not knowing whether it's a usage issue at your
end, a mis-understanding of how things work, or a bug in the OSG.  From the
info I have so far I don't have way of knowing, which is why I'm asking
specifically about the leak.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190702/d7d7e6e0/attachment.html>


More information about the osg-users mailing list