From 245e023164dffb87971c6af1b363b899a3c94964 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 May 2011 10:20:36 +0000 Subject: [PATCH] Fixed Coverity issues. CID 11669: Uninitialized pointer field (UNINIT_CTOR) Non-static class member _glAttachShader is not initialized in this constructor nor in any functions that it calls. Non-static class member _glBindAttribLocation is not initialized in this constructor nor in any functions that it calls. ... CID 11699: Uninitialized scalar field (UNINIT_CTOR) Non-static class member _areTessellationShadersSupported is not initialized in this constructor nor in any functions that it calls. --- src/osg/GL2Extensions.cpp | 159 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/src/osg/GL2Extensions.cpp b/src/osg/GL2Extensions.cpp index 8c1daa43c..29bd642b8 100644 --- a/src/osg/GL2Extensions.cpp +++ b/src/osg/GL2Extensions.cpp @@ -188,6 +188,8 @@ GL2Extensions::GL2Extensions(const GL2Extensions& rhs) : osg::Referenced() // ARB_get_program_binary _glGetProgramBinary = rhs._glGetProgramBinary; _glProgramBinary = rhs._glProgramBinary; + + _areTessellationShadersSupported = rhs._areTessellationShadersSupported; } @@ -355,6 +357,163 @@ void GL2Extensions::setupGL2Extensions(unsigned int contextID) if (!version) { OSG_NOTIFY(osg::FATAL)<<"Error: OpenGL version test failed, requires valid graphics context."<