Added missing tex env mode

This commit is contained in:
Robert Osfield
2004-07-21 19:15:34 +00:00
parent 1963fac426
commit b0a371ddb0

View File

@@ -573,6 +573,9 @@ osg::StateSet* ConvertFromInventor::getStateSet(SoCallbackAction* action)
case SoTexture2::BLEND:
texEnv->setMode(osg::TexEnv::BLEND);
break;
case SoTexture2::REPLACE:
texEnv->setMode(osg::TexEnv::REPLACE);
break;
}
stateSet->setTextureAttributeAndModes(0,texEnv,osg::StateAttribute::ON);
}