[osg-users] Bug in RenderBin (?)
David Callu
ledocc at gmail.com
Fri Mar 13 07:06:14 PDT 2009
Hi Christof
Robert prefer search the RenderBin instance that you want to remove instead
of search the name of a render bin.
like this :
void RenderBin::removeRenderBinPrototype(RenderBin* proto)
{
RenderBinPrototypeList* list = renderBinPrototypeList();
if (list && proto)
{
for(RenderBinPrototypeList::iterator itr = list->begin();
itr != list->end();
++itr)
{
if (itr->second.get() == proto)
{
list->erase(itr);
return;
}
}
}
}
Can you test this solution ?
David
2009/3/13 Christof Krüger <osgforum at tevs.eu>
> Changing the removeRenderBinPrototype to use the binName instead of the
> classname fixes the crash. For this, you need to also add a member string
> variable to the Proxy object in order to remember the binName.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=8445#8445
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090313/fff2b5fe/attachment-0003.htm>
More information about the osg-users
mailing list