Build fix

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14849 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-04-20 10:19:04 +00:00
parent 1020e22c33
commit 54b389a18a

View File

@ -1378,7 +1378,7 @@ ReaderWriter3DS::StateSetInfo ReaderWriter3DS::ReaderObject::createStateSet(Lib3
osg::ref_ptr<osg::Texture> reflection_map = createTexture(&(mat->reflection_map),"reflection_map",textureTransparency);
if (reflection_map)
{
stateset->setTextureAttributeAndModes(unit, reflection_map, osg::StateAttribute::ON);
stateset->setTextureAttributeAndModes(unit, reflection_map.get(), osg::StateAttribute::ON);
// setup spherical map...
osg::ref_ptr<osg::TexGen> texgen = new osg::TexGen();