Replaced dynamoc_cast<osg::CullStack*> with asCullStack() to improve performance of AutoTransform, screen size based LOD and PagedLOD.
This commit is contained in:
@@ -150,7 +150,7 @@ void PagedLOD::traverse(NodeVisitor& nv)
|
||||
}
|
||||
else
|
||||
{
|
||||
osg::CullStack* cullStack = dynamic_cast<osg::CullStack*>(&nv);
|
||||
osg::CullStack* cullStack = nv.asCullStack();
|
||||
if (cullStack && cullStack->getLODScale()>0.0f)
|
||||
{
|
||||
required_range = cullStack->clampedPixelSize(getBound()) / cullStack->getLODScale();
|
||||
|
||||
Reference in New Issue
Block a user