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

@@ -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);
}