Changed the template insert(,,) method for a std::copy() implemention as it

seems that the Sun Forte compiler can't handle member templates!
This commit is contained in:
Robert Osfield
2003-01-23 22:12:04 +00:00
parent f43d02f496
commit f74f50161c

View File

@@ -146,7 +146,9 @@ void TriStripVisitor::stripify(Geometry& geom)
++pitr)
{
osg::DrawElementsUShort* elements = new osg::DrawElementsUShort(pitr->m_Type);
elements->insert(elements->end(),pitr->m_Indices.begin(),pitr->m_Indices.end());
elements->reserve(pitr->m_Indices.size());
std::copy(pitr->m_Indices.begin(),pitr->m_Indices.end(),std::back_inserter(*elements));
//elements->insert(elements->end(),);
new_primitives.push_back(elements);
}