Hi JS, I just fixed this before getting your email, the fix is now checked in ;-)
Robert. On Tue, Feb 8, 2011 at 2:28 PM, Jean-Sébastien Guay <[email protected]> wrote: > Hi Robert, > > My auto-build failed this morning, the root error is: > > 1>..\..\..\src\osg\Texture.cpp(1962) : error C2440: 'initializing' : cannot > convert from 'const osg::BufferObject *' to 'osg::BufferObject *' > > The problem comes from the fact that the "image" parameter to > Texture::applyTexImage2D_load() is const, and the code was trying to get a > non-const BufferObject* from it. But both methods called on this > BufferObject afterwards are declared const (even releaseGLObjects(), which > surprises me, but ok...), so just getting a const BufferObject* fixes it. > > Fixed file attached. > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
