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:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user