Hello Stephane,

Stephane Routelous wrote:
> Hi,
> 
> I'm using VBO for my geometries, and my memory leak checker reports a
> leak for 
> _vbos.push_back(new GeoVBO(win, this)); //OSGGeometry.cpp line 2834
> 
> Do I have to do something special to clean the VBOs ? is destroyVBO
> called automatically ?
> Or should it be handled when destroying the node containing the
> geometry ?

destroying the vbo requires an active OpenGL context, so it can not be 
done immediately when the Geometry is destroyed. It will happen when 
Window::frameExit is called the next time. So yes, destroyVBO is called 
automatically at the end of the next frame.

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to