From 14ef282297cbc83e3461977565fce6d940664083 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 Apr 2015 09:08:56 +0000 Subject: [PATCH] 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 --- include/osgUtil/MeshOptimizers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgUtil/MeshOptimizers b/include/osgUtil/MeshOptimizers index c1402661c..e0ddd1e57 100644 --- a/include/osgUtil/MeshOptimizers +++ b/include/osgUtil/MeshOptimizers @@ -94,7 +94,7 @@ class OSGUTIL_EXPORT VertexAccessOrderVisitor : public GeometryCollector inline bool operator() (const osg::ref_ptr& prim1, const osg::ref_ptr& prim2) { if(prim1 && prim2) { - return prim1->getMode() >= prim2->getMode(); + return prim1->getMode() > prim2->getMode(); } else if(prim1) { return true;