We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b77494d commit 1830e20Copy full SHA for 1830e20
examples/state/vsgclip/vsgclip.cpp
@@ -74,7 +74,7 @@ class IntersectionHandler : public vsg::Inherit<vsg::Visitor, IntersectionHandle
74
if (intersector->intersections.empty()) return;
75
76
// sort the intersections front to back
77
- std::sort(intersector->intersections.begin(), intersector->intersections.end(), [](auto lhs, auto rhs) { return lhs->ratio < rhs->ratio; });
+ std::sort(intersector->intersections.begin(), intersector->intersections.end(), [](auto& lhs, auto& rhs) { return lhs->ratio < rhs->ratio; });
78
79
auto& intersection = *intersector->intersections.front();
80
world_clipSettings->at(0) = vsg::vec4(static_cast<float>(intersection.worldIntersection.x),
0 commit comments