From 9978c02b7f86999cfce8e0a58c0abf49744919f0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 7 May 2004 14:33:15 +0000 Subject: [PATCH] From Julian, fix to handling of multi-textures --- src/osgPlugins/flt/flt2osg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";