Futher changes to remove unitialized variables/reordering of initialization to

prevent unitialized warnings.
This commit is contained in:
Robert Osfield
2002-07-21 01:29:11 +00:00
parent 48b3be40e9
commit 389dd8adbb
13 changed files with 71 additions and 78 deletions

View File

@@ -2,12 +2,12 @@
using namespace osg;
LightSource::LightSource()
LightSource::LightSource():
_value(StateAttribute::ON)
{
// switch off culling of light source nodes by default.
setCullingActive(false);
_dstate = osgNew StateSet;
_value = StateAttribute::ON;
_light = osgNew Light;
}