[osg-users] Problems shutting down Composite Viewer/View/Custom drawables
Cole, Charles E. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY]
charles.e.cole at nasa.gov
Mon Mar 30 05:33:44 PDT 2009
Thanks for the response. It ended up being how I declared the destructor for my derived class as J-S pointed out. I was going down the path of when and if I needed to call releaseGLObjects() and nothing seemed to make a difference. And I'm still a little unsure of when that method should be called (or even if it should). But, fixing the destructor declaration stopped the crashes that I was seeing and I'm not explicitly calling releaseGLObjects() at all right now, on any object.
From: osg-users-bounces at lists.openscenegraph.org [mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of David Spilling
Sent: Friday, March 27, 2009 8:02 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Problems shutting down Composite Viewer/View/Custom drawables
I have had similar issues (with crashes in releaseGLObjects when views get destroyed) but can't actually recall what I did to fix them.
You could try calling viewer->releaseGLObjects() before you destroy the view. (previous posts seem to suggest that this might be the right thing to do)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users