Fixed unitialized variable
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user