Fixed bug related to clean up of text fonts.

This commit is contained in:
Robert Osfield
2006-10-03 11:14:34 +00:00
parent 392232ec06
commit 7c6b528588
10 changed files with 59 additions and 18 deletions

View File

@@ -1639,13 +1639,10 @@ void Text::accept(osg::PrimitiveFunctor& pf) const
}
/** If State is non-zero, this function releases OpenGL objects for
* the specified graphics context. Otherwise, releases OpenGL objexts
* for all graphics contexts. */
void Text::releaseGLObjects(osg::State* state) const
{
Drawable::releaseGLObjects(state);
if (_font.valid()) _font->releaseGLObjects(state);
getActiveFont()->releaseGLObjects(state);
}