From Mike Wittman, "Here is a change to the .cpp file to fix it by disambiguating the cull invocation."

This commit is contained in:
Robert Osfield
2007-03-28 15:05:49 +00:00
parent 11e3f45c58
commit b7967b7007
2 changed files with 5 additions and 1 deletions

View File

@@ -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.*/

View File

@@ -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);
}