Merge pull request #114 from scrawl/const-cast

Remove an unneeded const_cast
This commit is contained in:
OpenSceneGraph git repository 2016-08-16 12:40:35 +01:00 committed by GitHub
commit 2bdf56cb4b

View File

@ -767,7 +767,7 @@ void GraphicsContext::removeCamera(osg::Camera* camera)
nitr != nodes.end();
++nitr)
{
const_cast<osg::Node*>(*nitr)->releaseGLObjects(_state.get());
(*nitr)->releaseGLObjects(_state.get());
}
// release the context of the any RenderingCache that the Camera has.