Set main scene graph elements to use thread safe ref/unref by default

This commit is contained in:
Robert Osfield
2007-08-22 10:34:11 +00:00
parent ef4dafaea1
commit de4a4042f7
6 changed files with 12 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ void View::setLightingMode(LightingMode lightingMode)
if (_lightingMode != NO_LIGHT && !_light)
{
_light = new osg::Light;
_light->setThreadSafeRefUnref(true);
_light->setLightNum(0);
_light->setAmbient(Vec4(0.00f,0.0f,0.00f,1.0f));
_light->setDiffuse(Vec4(0.8f,0.8f,0.8f,1.0f));