From Martin Naylor, "I am receiving 1 build error whilst building the SVN, its in osgforest as follows:

error C2065: 'GL_RGBA32F' : undeclared identifier

Shoudlnt that be GL_RGBA32F_ARB as defined in texture header?

Attached is the easy fix :)."
This commit is contained in:
Robert Osfield 2013-05-27 08:13:23 +00:00
parent 18c37d14cd
commit 02e4aef5cb

View File

@ -1042,7 +1042,7 @@ osg::Node* ForestTechniqueManager::createTextureBufferGraph(Cell* cell, osg::Geo
}
osg::ref_ptr<osg::TextureBuffer> tbo = new osg::TextureBuffer;
tbo->setImage( treeParamsImage.get() );
tbo->setInternalFormat(GL_RGBA32F);
tbo->setInternalFormat(GL_RGBA32F_ARB);
geometry->getOrCreateStateSet()->setTextureAttribute(1, tbo.get());
geometry->setInitialBound( cell->_bb );
}