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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user