Robert Osfield wrote:
Hi Tony,
The policy on display lits hasn't changed since 1.0. The code itself
should be identical too.
Could there be an uninitialized variable in your code?
Hi Robert,
I've now fixed it. I was clearing down the geometry on each callback
via a call to removedrawable(). In osg 1.2 there is only one definition
of this and it takes a pointer to a drawable (not surprisingly).
However, in osg 1.0 there is an additional overloaded version that takes
an unsigned int so that you can delete a specific drawable. Hence, in
the later version I was trying to delete a drawable by passing an
integer value to it! In 1.2 the method has cunningly been changed to
removedrawables (plural) that takes an int. I've just passed the pointer
to the drawable from now on.
Thanks for your help on this one.
Cheers,
Tony.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/