From Tim Moore, "The order_by_primitive_mode comparer was not providing a strict weak

ordering, which was causing a crash in the sort() call in
VertexAccessOrderVisitor::optimizeOrder (gcc 4.9, Fedora 21)."



git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14846 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-04-20 09:08:56 +00:00
parent ed7629351f
commit 14ef282297

View File

@ -94,7 +94,7 @@ class OSGUTIL_EXPORT VertexAccessOrderVisitor : public GeometryCollector
inline bool operator() (const osg::ref_ptr<osg::PrimitiveSet>& prim1, const osg::ref_ptr<osg::PrimitiveSet>& prim2)
{
if(prim1 && prim2) {
return prim1->getMode() >= prim2->getMode();
return prim1->getMode() > prim2->getMode();
}
else if(prim1) {
return true;