diff --git a/src/osgPlugins/gles/LineIndexFunctor b/src/osgPlugins/gles/LineIndexFunctor index f4862d2fd..8f47cb499 100644 --- a/src/osgPlugins/gles/LineIndexFunctor +++ b/src/osgPlugins/gles/LineIndexFunctor @@ -35,7 +35,7 @@ public: }; struct LineCompare { - bool operator()(const Line& lhs, const Line& rhs) { + bool operator()(const Line& lhs, const Line& rhs) const { return lhs._a < rhs._a || (lhs._a == rhs._a && lhs._b < rhs._b); } };