Build fixes for when ref_ptr<> automatic type conversion is turned off

This commit is contained in:
Robert Osfield
2014-01-21 18:58:52 +00:00
parent 1678dc3562
commit c63bebd8c3

View File

@@ -269,7 +269,7 @@ void TransferFunctionWidget::createGraphics()
stateset->setMode(GL_BLEND, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED);
osg::ref_ptr<osg::AlphaFunc> alphaFunc = new osg::AlphaFunc(osg::AlphaFunc::GREATER, 0.0f);
stateset->setAttributeAndModes(alphaFunc, osg::StateAttribute::ON | osg::StateAttribute::PROTECTED);
stateset->setAttributeAndModes(alphaFunc.get(), osg::StateAttribute::ON | osg::StateAttribute::PROTECTED);
osg::ref_ptr<osg::Image> image = new osg::Image;
image->allocateImage(1,1,1, GL_RGBA, GL_UNSIGNED_BYTE);