From Mike Wittman, "Here is a change to the .cpp file to fix it by disambiguating the cull invocation."
This commit is contained in:
@@ -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.*/
|
||||
|
||||
@@ -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<State *>(0))) return;
|
||||
|
||||
traverse(node,nv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user