Ported GL2Extentions across to using the new GL extensions approach - cutting code count by 3000 lines!

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14566 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-12-04 16:22:31 +00:00
parent f8d53b7c8d
commit 66da1328f8
9 changed files with 422 additions and 3375 deletions

View File

@@ -269,11 +269,12 @@ public:
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
unsigned int contextID = gc->getState()->getContextID();
osg::GL2Extensions* gl2ext = osg::GL2Extensions::Get(contextID,true);
osg::GL2Extensions* gl2ext = gc->getState()->get<osg::GL2Extensions>();
if( gl2ext )
{
if( !gl2ext->isGlslSupported() )
if( !gl2ext->isGlslSupported )
{
_supported = false;
_errorMessage = "ERROR: GLSL not supported by OpenGL driver.";