Show
Ignore:
Timestamp:
01/21/09 20:01:26 (5 years ago)
Author:
robert
Message:

Fixed compile errors for when ref_ptr<> auto conversion is disabled

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgdrawinstanced/osgdrawinstanced.cpp

    r9459 r9530  
    104104        return( NULL ); 
    105105    } 
    106     osg::Texture2D* texLogo = new osg::Texture2D( iLogo ); 
     106    osg::Texture2D* texLogo = new osg::Texture2D( iLogo.get() ); 
    107107    texLogo->setFilter( osg::Texture2D::MIN_FILTER, osg::Texture2D::LINEAR ); 
    108108    texLogo->setFilter( osg::Texture2D::MAG_FILTER, osg::Texture2D::LINEAR ); 
     
    137137    // Add geometric data and the PrimitiveSet. Specify numInstances as 32*32 or 1024. 
    138138    createDAIGeometry( *geom, 32*32 ); 
    139     geode->addDrawable( geom ); 
     139    geode->addDrawable( geom.get() ); 
    140140 
    141141    // Create a StateSet to render the instanced Geometry.