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

Julien Valentin julienvalentin51 at gmail.com
Thu Mar 28 19:36:15 PDT 2019


I don't understand:
I can't find any static osg::ref_ptr<osg::Program> in osgText/Text...
please give a simple code illustrating your problem


AnyOldName3 wrote:
> The problem is specifically because it's static. Unless I'm manually keeping track of when the last text object is removed from the scene, I can't release the program without it potentially still being in use. If I never release it, references to it can persist beyond the lifetime of the context it was created for.
> 
> 
> Cheers,
> Chris


------------------------
Twirling twirling twirling toward freedom

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75748#75748







More information about the osg-users mailing list