From Ryan Pavlik, Merged from svn/trunk revision 12686. "Fix inventor state copy constructor.

Clang warning:
    In file included from src/osgPlugins/Inventor/ConvertToInventor.cpp:80:
    src/osgPlugins/Inventor/ConvertToInventor.h:117:71: warning: field is uninitialized when used here [-Wuninitialized]
            osgTexGenS(s.osgTexGenS), osgTexGenT(s.osgTexGenT), osgTexGen(osgTexGen),
                                                                          ^"
This commit is contained in:
Robert Osfield
2011-07-15 08:45:54 +00:00
parent c0d2ccc017
commit 902c4aa1e9

View File

@@ -114,7 +114,7 @@ protected:
InventorState(const InventorState &s) : ivHead(s.ivHead), ivTexture(s.ivTexture),
ivMaterial(s.ivMaterial), osgMaterial(s.osgMaterial),
osgTexture2Enabled(s.osgTexture2Enabled), osgTexture(s.osgTexture), osgTexEnv(s.osgTexEnv),
osgTexGenS(s.osgTexGenS), osgTexGenT(s.osgTexGenT), osgTexGen(osgTexGen),
osgTexGenS(s.osgTexGenS), osgTexGenT(s.osgTexGenT), osgTexGen(s.osgTexGen),
osgLighting(s.osgLighting), osgTwoSided(s.osgTwoSided), osgFrontFace(s.osgFrontFace),
osgCullFaceEnabled(s.osgCullFaceEnabled), osgCullFace(s.osgCullFace),
osgBlendEnabled(s.osgBlendEnabled), osgBlendFunc(s.osgBlendFunc) {}