Removed redundent check

This commit is contained in:
Robert Osfield
2016-06-23 17:19:20 +01:00
parent 07927084f2
commit 1c787588ed

View File

@@ -573,7 +573,7 @@ bool RenderBin::getStats(Statistics& stats) const
++dw_itr)
{
const RenderLeaf* rl = dw_itr->get();
const Drawable* dw= rl->getDrawable();
const Drawable* dw = rl->getDrawable();
stats.addDrawable(); // number of geosets
const Geometry* geom = dw->asGeometry();
@@ -583,11 +583,9 @@ bool RenderBin::getStats(Statistics& stats) const
}
if (rl->_modelview.get()) stats.addMatrix(); // number of matrices
if (dw)
{
// then tot up the primitive types and no vertices.
dw->accept(stats); // use sub-class to find the stats for each drawable
}
// then tot up the primitive types and no vertices.
dw->accept(stats); // use sub-class to find the stats for each drawable
}
statsCollected = true;
}