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;