Re: [osg-users] destructing Viewer after context is gone

2010-09-02 Thread Robert Osfield
Hi Andy, On Wed, Sep 1, 2010 at 7:12 PM, Andy Skinner andy.skin...@mathworks.com wrote: Should I be able to set up a Viewer or CompositeViewer such that it can be destroyed when the graphics context is not current?  What about if it does not exist anymore? GraphicsWindowEmbbedded usage

Re: [osg-users] destructing Viewer after context is gone

2010-09-02 Thread Andy Skinner
GraphicsWindowEmbbedded usage assume that context is always current for the life of the viewer. With a bit of hacking you could probably disable the clean up the view and graphics window are attempting to do, but it would probably be far easier to remove the destroy the graphics

Re: [osg-users] destructing Viewer after context is gone

2010-09-02 Thread Robert Osfield
Hi Andy, On Thu, Sep 2, 2010 at 1:17 PM, Andy Skinner andy.skin...@mathworks.com wrote: JOGL has an interface with init(), display(), displayChanged(), and reshape().  It doesn't have a method for when the context is being destroyed.  You can do something on the removeNotify() for the

[osg-users] destructing Viewer after context is gone

2010-09-01 Thread Andy Skinner
I'm using OSG 2.8.3, the last stable release. I'm using a Viewer with GraphicsWindowEmbedded. On closing the window, the Viewer is destroyed, and the destructor tries to close the GraphicsContext. Inside flushAllDeletedGLObjects, flushDeletedGlPrograms is called. Inside that, there is a call