From 23846f6478ade0b8047443db72f64009994b27a3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jun 2016 15:36:00 +0100 Subject: [PATCH] Removed unneccessary pointer check --- src/osgUtil/RenderBin.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/osgUtil/RenderBin.cpp b/src/osgUtil/RenderBin.cpp index c0d863a6a..0e87a578a 100644 --- a/src/osgUtil/RenderBin.cpp +++ b/src/osgUtil/RenderBin.cpp @@ -555,11 +555,9 @@ bool RenderBin::getStats(Statistics& stats) const 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; } stats.addStateGraphs(_stateGraphList.size());