Fixed crash on exit issues with osgFX, osgParticle, osgSim and the osgforest example

This commit is contained in:
Robert Osfield
2019-01-07 17:46:02 +00:00
parent 5e9be10da6
commit 1c65815f4e
11 changed files with 150 additions and 16 deletions

View File

@@ -803,6 +803,18 @@ class ShaderGeometry : public osg::Drawable
typedef std::vector<osg::Vec4> PositionSizeList;
virtual void resizeGLObjectBuffers(unsigned int maxSize)
{
osg::Drawable::resizeGLObjectBuffers(maxSize);
if (_geometry) _geometry->resizeGLObjectBuffers(maxSize);
}
virtual void releaseGLObjects(osg::State* state) const
{
osg::Drawable::releaseGLObjects(state);
if (_geometry) _geometry->releaseGLObjects(state);
}
virtual void drawImplementation(osg::RenderInfo& renderInfo) const
{
for(PositionSizeList::const_iterator itr = _trees.begin();