Using a PR from Sando Mani for requestioning a specific GL version as a base, cleaned up formattating, made the new code paths simpler and added clean up of memory

This commit is contained in:
Robert Osfield
2017-08-21 11:40:45 +01:00
parent 70135d606e
commit 8926f0e9c2
3 changed files with 68 additions and 17 deletions

View File

@@ -767,12 +767,6 @@ struct BlockDrawCallback : public virtual osg::Drawable::DrawCallback
vertices->dirty();
osg::DrawArrays* drawArrays = dynamic_cast<osg::DrawArrays*>(geom->getPrimitiveSet(0));
if(drawArrays)
{
drawArrays->setCount(vi);
}
drawable->drawImplementation(renderInfo);
}