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:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user