Hi Robert, I used windows vista 64 and 32. It happens with an up to date trunk and I didn't have the problem with a previous version. I don't know the revision I used to use, was probably before your openGL ES work.
Thanks for looking into this. -- Nico On Wed, Nov 25, 2009 at 10:47 AM, Robert Osfield <robert.osfi...@gmail.com>wrote: > HI Nico, > > This is clearly a bug, as it certainly shouldn't crash with this type > of usage. I will be investigating various bugs today and will have a > look at this one as well. > > Which platform are you working on? > Robert. > > On Tue, Nov 24, 2009 at 8:18 PM, Nico Kruithof <n...@nghk.nl> wrote: > > Hello, > > When a node with VBO's enabled outlives the lifetime of it's renderer, I > get > > an access violation in GLBufferObjectSet::orphan when I try to destroy > the > > node. I tried to write down the scenario: > > using namespace osg; > > ref_ptr<Node> node(new Node); > > ref_ptr<Geometry> geom(new osg::Geometry); > > // ... fill geom > > geom->setUseVertexBufferObjects(true); > > node->addDrawable(geom.get()); > > { > > ref_ptr<osgViewer::Viewer> viewer(new osgViewer::Viewer()); > > viewer->setSceneData(node); > > viewer->frame(); > > // render for a while > > viewer = NULL; // The viewer is destroyed here > > } > > node = NULL; // This gives the access violation. > > > > Now if I don't set "geom->setUseVertexBufferObjects(true);" everything > works > > fine. Do you still need a valid render context or a valid viewer to be > able > > to clean up the VBO's? > > Nico > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org