From 1c787588edbb60084ebce8d000b729d463b5bd8f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 17:19:20 +0100 Subject: [PATCH] Removed redundent check --- src/osgUtil/RenderBin.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/osgUtil/RenderBin.cpp b/src/osgUtil/RenderBin.cpp index edd23293f..c0d863a6a 100644 --- a/src/osgUtil/RenderBin.cpp +++ b/src/osgUtil/RenderBin.cpp @@ -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; }