diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index 8a11dbbcc..881977ee9 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -1609,7 +1609,7 @@ ConvertFromFLT::addMultiTexture( DynGeoSet* dgset, MultiTextureRecord* mtr ) return; } - osg::StateSet *textureStateSet = dynamic_cast (pTexturePool->getTexture((int)mt->data[l].texture,mtr->getFlightVersion())); + osg::StateSet *textureStateSet = dynamic_cast ((pTexturePool->getTexture((int)mt->data[l].texture,mtr->getFlightVersion()))->stateset); CERR << "pTexturePool->getTexture((int)mt->data[l].texture): " << pTexturePool->getTexture((int)mt->data[l].texture,mtr->getFlightVersion()) << "\n"; CERR << "textureStateSet: " << textureStateSet << "\n";