Added crude #ifdef COIN_BASIC_H around ::REPLACE usage as this is only

available under Coing
This commit is contained in:
Robert Osfield 2004-09-01 09:10:15 +00:00
parent da6993fc77
commit cc4a22a117

View File

@ -573,9 +573,14 @@ osg::StateSet* ConvertFromInventor::getStateSet(SoCallbackAction* action)
case SoTexture2::BLEND:
texEnv->setMode(osg::TexEnv::BLEND);
break;
#ifdef COIN_BASIC_H
// crude COIN detection so that REPLACE is only compiled in when using Coin
// as the SGI Inventor does do have REPLACE
case SoTexture2::REPLACE:
texEnv->setMode(osg::TexEnv::REPLACE);
break;
#endif
}
stateSet->setTextureAttributeAndModes(0,texEnv,osg::StateAttribute::ON);
}