[osg-users] context IDs

Andy Skinner Andy.Skinner at mathworks.com
Mon Sep 17 11:08:13 PDT 2018


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?  It looks to me that extensions are stored per context ID and never reset.

So if we change something about what we are looking for in the context (sometimes we fall back to software OpenGL for testing or helping a customer through an issue), we might reuse a context ID, but still have extensions associated with the ID that are not appropriate for it.

Am I missing an assumption here?  Should I be able to reuse a contextID for an unrelated context?  If not, I'll just remove call to decrementContextIDUsageCount.  That means the number and various maps will continue to grow.

thanks
andy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20180917/ea826373/attachment.html>


More information about the osg-users mailing list