[osg-submissions] Off-by-one error in osgUtil/RenderBin.cpp?
Andrew Bettison
andrewb at acres.com.au
Fri May 23 03:10:13 PDT 2008
I have an application which provokes the following warning every time it
invokes osgUtil::SceneView::draw():
Warning: State::removeStateSet(4294967295) out of range
If I change line 384 of osgUtil/RenderBin.cpp from
* if (numToPop>1) --numToPop;*
to
*
if (numToPop>=1) --numToPop;*
then the warning goes away. I haven't noticed any other effects of this
change.
If you want, I can try to produce a minimal node graph file that
provokes this warning when viewed with /osgviewer/, but it occurs to me
that since it's such a simple change, you might merely need to inspect
the code to decide whether or not it's just a simple off-by-one error.
Regards,
Andrew Bettison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080523/b2fd0b67/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RenderBin.cpp
Type: text/x-c++src
Size: 16141 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080523/b2fd0b67/attachment.cpp>
More information about the osg-submissions
mailing list