diff --git a/include/osg/ClusterCullingCallback b/include/osg/ClusterCullingCallback index 9aa8a9590..3f8bc4f02 100644 --- a/include/osg/ClusterCullingCallback +++ b/include/osg/ClusterCullingCallback @@ -54,6 +54,10 @@ class OSG_EXPORT ClusterCullingCallback : public Drawable::CullCallback, public void setDeviation(float deviation) { _deviation = deviation; } float getDeviation() const { return _deviation; } + /* Not all virtual overloads of drawImplementation are overridden in this class, so + bring the base class implementation in to avoid hiding the non-used ones. */ + using Drawable::CullCallback::cull; + virtual bool cull(osg::NodeVisitor*, osg::Drawable*, osg::State*) const; /** Callback method called by the NodeVisitor when visiting a node.*/ diff --git a/src/osg/ClusterCullingCallback.cpp b/src/osg/ClusterCullingCallback.cpp index 1913cfc4e..b222b0169 100644 --- a/src/osg/ClusterCullingCallback.cpp +++ b/src/osg/ClusterCullingCallback.cpp @@ -194,7 +194,7 @@ void ClusterCullingCallback::operator()(Node* node, NodeVisitor* nv) { if (nv) { - if (cull(nv,0,0)) return; + if (cull(nv,0,static_cast(0))) return; traverse(node,nv); }