Fixed 2 Coverty reported issues.

CID 11821: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member _traversalNumber is not initialized in this constructor nor in any functions that it calls.

CID 11822: Uninitialized scalar field (UNINIT_CTOR)
Non-static class member _traversalNumber is not initialized in this constructor nor in any functions that it calls.
This commit is contained in:
Robert Osfield 2011-05-09 10:51:52 +00:00
parent c9f5be090a
commit 7b4d44b2f5

View File

@ -48,6 +48,7 @@ CullVisitor::CullVisitor():
NodeVisitor(CULL_VISITOR,TRAVERSE_ACTIVE_CHILDREN),
_currentStateGraph(NULL),
_currentRenderBin(NULL),
_traversalNumber(0),
_computed_znear(FLT_MAX),
_computed_zfar(-FLT_MAX),
_currentReuseRenderLeafIndex(0),
@ -61,6 +62,7 @@ CullVisitor::CullVisitor(const CullVisitor& rhs):
CullStack(rhs),
_currentStateGraph(NULL),
_currentRenderBin(NULL),
_traversalNumber(0),
_computed_znear(FLT_MAX),
_computed_zfar(-FLT_MAX),
_currentReuseRenderLeafIndex(0),