[osg-users] VBO possible leakage

2010-12-13 Thread George Sarkisyan
Hi, Using the gDEBugger I found some VBO leaks on application exit. For example the leak could be easily seen if we add useVertexBufferObjects TRUE into cessna.osg and will try to render it via standard osgviewer. OSG calls releaseGLObjects before exit for the loaded tree and for Geometry it

Re: [osg-users] VBO possible leakage

2010-12-13 Thread Robert Osfield
Hi George, I have just reviewed the relevant code Array's are no implementing the releaseGLObjects(State*) as they should be. The solution is to add a resizeGLObjectBuffers(uint) and releaseGLObjects(State*) to BufferData and this automatically call the appropriate method on osg::BufferObject if