From 65d2ddd325b123937f6a5c1cd4e73c1a611b68c1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 May 2011 10:18:05 +0000 Subject: [PATCH] Fixed Coverity issue. CID 11668: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _primitiveMode is not initialized in this constructor nor in any functions that it calls. --- src/osg/GLBeginEndAdapter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osg/GLBeginEndAdapter.cpp b/src/osg/GLBeginEndAdapter.cpp index 32f2f51c9..fc835d413 100644 --- a/src/osg/GLBeginEndAdapter.cpp +++ b/src/osg/GLBeginEndAdapter.cpp @@ -24,7 +24,8 @@ GLBeginEndAdapter::GLBeginEndAdapter(State* state): _normalAssigned(false), _normal(0.0f,0.0f,1.0f), _colorAssigned(false), - _color(1.0f,1.0f,1.0f,1.0f) + _color(1.0f,1.0f,1.0f,1.0f), + _primitiveMode(0) { }