Form Richard Schmidt, "The following features were added:

* the glsl plugin now supports processing #includes. The file extension sets the shader type.

* the registry releases gl objects of the shared state manager
 "
This commit is contained in:
Robert Osfield
2010-12-13 12:16:57 +00:00
parent a345a04254
commit c665fdc973
4 changed files with 89 additions and 14 deletions

View File

@@ -1563,6 +1563,11 @@ void Registry::releaseGLObjects(osg::State* state)
osg::Object* object = itr->second.first.get();
object->releaseGLObjects(state);
}
if (_sharedStateManager.valid())
{
_sharedStateManager->releaseGLObjects( state );
}
}
SharedStateManager* Registry::getOrCreateSharedStateManager()