Improved the handling a releaseGLObjects() and add setThreadSafeRefUnref and resizeGLObjectsBuffers methods
This commit is contained in:
@@ -1639,6 +1639,24 @@ void Text::accept(osg::PrimitiveFunctor& pf) const
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Text::setThreadSafeRefUnref(bool threadSafe)
|
||||
{
|
||||
Drawable::setThreadSafeRefUnref(threadSafe);
|
||||
|
||||
getActiveFont()->setThreadSafeRefUnref(threadSafe);
|
||||
}
|
||||
|
||||
void Text::resizeGLObjectBuffers(unsigned int maxSize)
|
||||
{
|
||||
Drawable::resizeGLObjectBuffers(maxSize);
|
||||
|
||||
_autoTransformCache.resize(maxSize);
|
||||
|
||||
getActiveFont()->resizeGLObjectBuffers(maxSize);
|
||||
}
|
||||
|
||||
|
||||
void Text::releaseGLObjects(osg::State* state) const
|
||||
{
|
||||
Drawable::releaseGLObjects(state);
|
||||
@@ -1646,7 +1664,6 @@ void Text::releaseGLObjects(osg::State* state) const
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Text::setBackdropType(BackdropType type)
|
||||
{
|
||||
if (_backdropType==type) return;
|
||||
|
||||
Reference in New Issue
Block a user