diff --git a/include/osgUtil/DepthSortedBin b/include/osgUtil/DepthSortedBin index 45d75ae84..bd565360e 100644 --- a/include/osgUtil/DepthSortedBin +++ b/include/osgUtil/DepthSortedBin @@ -16,7 +16,8 @@ class OSGUTIL_EXPORT DepthSortedBin : public RenderBin DepthSortedBin(); - virtual osg::Object* clone() const { return new DepthSortedBin(); } + virtual osg::Object* cloneType() const { return new DepthSortedBin(); } + virtual osg::Object* clone(const osg::CopyOp&) const { return new DepthSortedBin(); } // note only implements a clone of type. virtual bool isSameKindAs(const osg::Object* obj) const { return dynamic_cast(obj)!=0L; } virtual const char* className() const { return "DepthSortedBin"; }