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

@@ -385,6 +385,8 @@ QueryGeometry::getNumPixels( const osg::Camera* cam )
void
QueryGeometry::releaseGLObjects( osg::State* state ) const
{
Geometry::releaseGLObjects(state);
if (!state)
{
// delete all query IDs for all contexts.