Thanks Mikhail, fix now merged and submitted to svn/trunk.
On Wed, Oct 6, 2010 at 4:51 PM, Mikhail I. Izmestev <[email protected]> wrote: > Hi, > > There is bug in GLBufferObject::compileBuffer when changed not first buffer > entry, then generated > new wrong offset. > > There is diff: > Index: src/osg/BufferObject.cpp > =================================================================== > --- src/osg/BufferObject.cpp (revision 11816) > +++ src/osg/BufferObject.cpp (working copy) > @@ -138,11 +138,13 @@ > entry.dataSource = bd; > > newTotalSize += entry.dataSize; > - if (previousEndOfBufferDataMarker==newTotalSize) > + if (previousEndOfBufferDataMarker!=newTotalSize) > { > offsetChanged = true; > } > } > + else > + newTotalSize += entry.dataSize; > } > else > { > > > Mikhail. > > > _______________________________________________ > 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
