In the case you are talking about the Vertex Array remains until its referenced count goes to zero.  However, it is not a "dangling" vertex array as you still have a ref_ptr to it.

-don

On 9/1/06, Bill Prendergast <[EMAIL PROTECTED]> wrote:
>> The piece you are probably missing is that the VertexArray and the Geometry are two separate objects
>> The Geometry has a ref_ptr to the VertexArray. When the Geometry is deleted, the ref_ptr to the VertexArray
>> will decrement the reference of the VertexArray.
>> -don

Don,

Thanks for the reply... yes, I know they are two separate (but related) objects.

>> When the Geometry is deleted, the ref_ptr to the VertexArray
>> will decrement the reference of the VertexArray.

And in the case I'm thinking about, the VertexArray will still remain because
I took out a SEPARATE ref_ptr to it.  Everything else about the Geometry
can be deleted, but the VertexArray will still remain.

Are there any ramifications?  Or just a VertexArray that remains until its
ref count gets to zero?

I am walking through the myriad related function (dtors) and I just figured
that someone knew if a dangling VertexArray was just that - or if it affected
anything else.

- Bill


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to