From Tony Horrobin, "This fix just makes a couple of calls to ref_ptr<>::get() to satisfy the compiler.
The changes make the build successful under Windows 7/VC2005 and Ubuntu 9.10 with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF. "
This commit is contained in:
@@ -845,7 +845,7 @@ protected:
|
||||
serializer->add(#VALUE, MyClass::VALUE)
|
||||
|
||||
#define END_ENUM_SERIALIZER() \
|
||||
wrapper->addSerializer(serializer); }
|
||||
wrapper->addSerializer(serializer.get()); }
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ static bool readAttributeList( osgDB::InputStream& is, osg::StateSet& ss )
|
||||
for ( osg::StateSet::AttributeList::iterator itr=attrs.begin();
|
||||
itr!=attrs.end(); ++itr )
|
||||
{
|
||||
ss.setAttribute( itr->second.first, itr->second.second );
|
||||
ss.setAttribute( itr->second.first.get(), itr->second.second );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -221,7 +221,7 @@ static bool readTextureAttributeList( osgDB::InputStream& is, osg::StateSet& ss
|
||||
for ( osg::StateSet::AttributeList::iterator itr=attrs.begin();
|
||||
itr!=attrs.end(); ++itr )
|
||||
{
|
||||
ss.setTextureAttribute( i, itr->second.first, itr->second.second );
|
||||
ss.setTextureAttribute( i, itr->second.first.get(), itr->second.second );
|
||||
}
|
||||
attrs.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user