Hi Tanguy,
On Wed, Aug 5, 2009 at 4:53 PM, Tanguy
Fautre<[email protected]> wrote:
> Robert, could you confirm that the rendering thread is not supposed to
> be actively culling/drawing when being outside of Viewer::run() (or more
> precisely, Viewer::frame())?
If you are using DrawThreadPerContext or
CullThreadPerCameraDrawThreadPerContext then the draw thread will run
over the end of frame() or even run().
Call viewer.stopThreading(); to ensure the threads are stopped.
--
W.r.t osgText not clearing it's GL objects properly, in theory
releaseGLobjects() should work, and should purge the graphics context
just fine. Looking at the implementation of Tex
void Text::releaseGLObjects(osg::State* state) const
{
TextBase::releaseGLObjects(state);
getActiveFont()->releaseGLObjects(state);
}
And
void Font::releaseGLObjects(osg::State* state) const
{
if (_stateset.valid()) _stateset->releaseGLObjects(state);
for(GlyphTextureList::const_iterator itr=_glyphTextureList.begin();
itr!=_glyphTextureList.end();
++itr)
{
(*itr)->releaseGLObjects(state);
}
// const_cast<Font*>(this)->_glyphTextureList.clear();
// const_cast<Font*>(this)->_sizeGlyphMap.clear();
}
Which broadly looks to be the right thing.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org