mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
15 lines
778 B
Diff
15 lines
778 B
Diff
Fix build error due to change in OSG API
|
|
https://github.com/openscenegraph/VirtualPlanetBuilder/commit/b5aa52a84f7c9311468ddd921da27e25857141fa?w=1
|
|
--- src/vpb/BuildOptionsIO.cpp.orig
|
|
+++ src/vpb/BuildOptionsIO.cpp
|
|
@@ -538,7 +538,8 @@ static bool readLayerImageOptions( osgDB::InputStream& is, vpb::BuildOptions& bo
|
|
unsigned int size = 0; is >> size >> IS_BEGIN_BRACKET;
|
|
for ( unsigned int i=0; i<size; ++i )
|
|
{
|
|
- vpb::ImageOptions* imageOptions = dynamic_cast<vpb::ImageOptions*>( is.readObject() );
|
|
+ osg::ref_ptr<osg::Object> obj = is.readObject();
|
|
+ vpb::ImageOptions* imageOptions = dynamic_cast<vpb::ImageOptions*>( obj.get() );
|
|
if ( imageOptions ) bo.setLayerImageOptions( i, imageOptions );
|
|
}
|
|
is >> IS_END_BRACKET;
|