From f9d217ea078074fcb7e947eb857df7c73aab436b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 28 Apr 2011 10:23:28 +0000 Subject: [PATCH] Fixed Coverity reported issue. ID 11667: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _useVertexAttribAlias is not initialized in this constructor nor in any functions that it calls. Member variable should have been initialized but this varaible will have always been initialized in later code before it was used anyway so wouldn't have resulted in a runtime bug. --- src/osg/ArrayDispatchers.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osg/ArrayDispatchers.cpp b/src/osg/ArrayDispatchers.cpp index 18a2de75d..aef3b64a0 100644 --- a/src/osg/ArrayDispatchers.cpp +++ b/src/osg/ArrayDispatchers.cpp @@ -378,6 +378,7 @@ ArrayDispatchers::ArrayDispatchers(): _colorDispatchers(0), _secondaryColorDispatchers(0), _fogCoordDispatchers(0), + _useVertexAttribAlias(false), _useGLBeginEndAdapter(false) { @@ -574,6 +575,7 @@ void ArrayDispatchers::reset() { if (!_initialized) init(); + _useVertexAttribAlias = false; _useGLBeginEndAdapter = false; for(ActiveDispatchList::iterator itr = _activeDispatchList.begin();