Fixed build with no automatic ref_ptr<> conversion

This commit is contained in:
Robert Osfield
2013-10-01 19:34:21 +00:00
parent fcc14e467a
commit 59caf4a48e
3 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ bool Image::load()
texture->setResizeNonPowerOfTwoHint(false);
texture->setFilter(osg::Texture::MIN_FILTER, osg::Texture::LINEAR);
texture->setFilter(osg::Texture::MAG_FILTER, osg::Texture::LINEAR);
geometry->getOrCreateStateSet()->setTextureAttributeAndModes(0, texture, osg::StateAttribute::ON);
geometry->getOrCreateStateSet()->setTextureAttributeAndModes(0, texture.get(), osg::StateAttribute::ON);
osg::ref_ptr<osg::Geode> geode = new osg::Geode;
geode->addDrawable(geometry.get());