[osg-users] Bug in RenderBin (?)

Paul Melis paul at science.uva.nl
Thu Mar 12 04:20:38 PDT 2009


Robert Osfield wrote:
> Hi David,
>
> On Thu, Mar 12, 2009 at 10:46 AM, David Callu <ledocc at gmail.com> wrote:
>   
>> What about the case of register two prototype with the same name. There are
>> any warning message for the user.
>> I fix this like that
>>     
>
> There is only ever supposed to be one prototype per binName, and the
> std::map<binname,prototype> ensures this is the case.  If you attach
> two different bins under the same binName then the first will be
> replaced by the second one and the first one will automatically be
> unref'd.
>   
What was the use case for the bin names again? I mean, as there are 
already bin numbers that uniquely identify a bin are the names merely 
descriptive?

Regards,
Paul




More information about the osg-users mailing list