Hi Robert,
thanks for the quick reply. I got it sorted out now. I had more than more issue
in my code and things got mixed up. It looks like it takes a few calls to
frame() at start before i can retrieve a valid graphicsContext.
Code:
osg::GraphicsContext* gc =
compositeViewer_.getView(0)->getCamera()->getGraphicsContext();
unsigned int contextID = gc->getState()->getContextID();
osg::GL2Extensions* ext = osg::GL2Extensions::Get(contextID,false);
if(ext)
{
return ext->getGlVersion();
}
Thank you!
Cheers,
Stephan
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36982#36982
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org