[osg-users] bug - resources aren't properly deallocated when a viewer is destroyed

2008-11-21 Thread brettwiesner
Hi, I have a simple example that shows that if you run a viewer, tear it down and run it again, textures are missing. (winXP, 2.6.0). It appears that resources such as Textures and DisplayLists are leaking and corrupting runs. The attached example simply creates a viewer and loads the

Re: [osg-users] bug - resources aren't properly deallocated when a viewer is destroyed

2008-11-21 Thread Robert Osfield
Hi Brett, The Viewer does it best to deallocate and clean up all buffers on the scene graphs that it knows about, but your code is hidding the scene graph from it by removing them from the view's scene graph so these removed elements do go throw the OpenGL clean up process. If you really want to