Fixed unitialized variable

This commit is contained in:
Robert Osfield
2008-07-23 15:42:02 +00:00
parent cc2af85c96
commit 6488ff23a5
2 changed files with 11 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ class OSG_EXPORT PolygonMode : public StateAttribute
PolygonMode();
PolygonMode(Face face,Mode mode) { setMode(face,mode); }
PolygonMode(Face face,Mode mode);
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
PolygonMode(const PolygonMode& pm,const CopyOp& copyop=CopyOp::SHALLOW_COPY):

View File

@@ -16,10 +16,17 @@
using namespace osg;
PolygonMode::PolygonMode()
PolygonMode::PolygonMode():
_modeFront(FILL),
_modeBack(FILL)
{
_modeFront = FILL;
_modeBack = FILL;
}
PolygonMode::PolygonMode(Face face,Mode mode):
_modeFront(FILL),
_modeBack(FILL)
{
setMode(face,mode);
}