[osg-users] context IDs

2018-09-17 Thread Andy Skinner
If we get our contextIDs from GraphicsContext::createNewContextID(), it could give us a new number or return a previous one, if we are returning them with GraphicsContext::decrementContextIDUsageCount. Right? Is there an intended connection between a contextID that has been used and a new one?

Re: [osg-users] context IDs

2018-09-19 Thread Robert Osfield
Hi Andy, It's quite a while since I worked specifically on the osg::State, ContextID, osg::GLExtensions management. In principle it should be possible to reuse ContextID's, the sticky issue of whether the GLExtensions object is recreated for each new graphics context is something I haven't person

Re: [osg-users] context IDs

2018-09-19 Thread Andy Skinner
then get drawn into Java windows. andy -Original Message- From: osg-users On Behalf Of Robert Osfield Sent: Wednesday, September 19, 2018 4:20 AM To: OpenSceneGraph Users Subject: Re: [osg-users] context IDs Hi Andy, It's quite a while since I worked specifically on the osg::St

Re: [osg-users] context IDs

2018-09-19 Thread Andy Skinner
r out what is stored, possibly when the context ID usage count goes to 0, or maybe explicitly. thanks andy -Original Message- From: osg-users On Behalf Of Robert Osfield Sent: Wednesday, September 19, 2018 4:20 AM To: OpenSceneGraph Users Subject: Re: [osg-users] context IDs Hi Andy,

Re: [osg-users] context IDs

2018-09-19 Thread Robert Osfield
text IDs, then we need a way to clear out what is stored, possibly > when the context ID usage count goes to 0, or maybe explicitly. > > thanks > > andy > > -Original Message- > From: osg-users On Behalf Of > Robert Osfield > Sent: Wednesday, September 19,

Re: [osg-users] context IDs

2018-09-19 Thread Andy Skinner
: Wednesday, September 19, 2018 4:20 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] context IDs > > Hi Andy, > > It's quite a while since I worked specifically on the osg::State, > ContextID, osg::GLExtensions management. In principle it should be > possible t

Re: [osg-users] context IDs

2018-09-21 Thread Andy Skinner
nner Sent: Wednesday, September 19, 2018 3:32 PM To: OpenSceneGraph Users Subject: RE: [osg-users] context IDs Thanks, I'll take a look. I am hoping this will be more remove than replace, not needing multiple levels of caching. thanks andy -Original Message- From: osg-users On Be

Re: [osg-users] context IDs

2018-09-21 Thread Robert Osfield
able to make a change. I think I feel better with the change to clear > the existing list element in ~GLException. But I think the other approach > would be better for current OSG. > > andy > > -Original Message- > From: Andy Skinner > Sent: Wednesday, September