diff --git a/src/osgPlugins/txp/TXPArchive.cpp b/src/osgPlugins/txp/TXPArchive.cpp index 190458ef0..de4a4816d 100644 --- a/src/osgPlugins/txp/TXPArchive.cpp +++ b/src/osgPlugins/txp/TXPArchive.cpp @@ -224,7 +224,7 @@ bool TXPArchive::loadMaterials() osg_material->setShininess(osg::Material::FRONT_AND_BACK , (float)shinines); osg_material->setAlpha(osg::Material::FRONT_AND_BACK ,(float)alpha); - //osg_state_set->setAttributeAndModes(osg_material, osg::StateAttribute::ON); + osg_state_set->setAttributeAndModes(osg_material, osg::StateAttribute::ON); if( alpha < 1.0f ) { diff --git a/src/osgPlugins/txp/TXPParser.cpp b/src/osgPlugins/txp/TXPParser.cpp index 67b4a0ead..34bb50057 100644 --- a/src/osgPlugins/txp/TXPParser.cpp +++ b/src/osgPlugins/txp/TXPParser.cpp @@ -412,7 +412,7 @@ void TXPParser::loadLocalMaterials() osg_material->setShininess(osg::Material::FRONT_AND_BACK , (float)shinines); osg_material->setAlpha(osg::Material::FRONT_AND_BACK ,(float)alpha); - //osg_state_set->setAttributeAndModes(osg_material, osg::StateAttribute::ON); + osg_state_set->setAttributeAndModes(osg_material, osg::StateAttribute::ON); if( alpha < 1.0f ) {