MOved VertexProgram and FragmentProgram::Extensions into GL2Extensions.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14580 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-12-08 16:08:44 +00:00
parent 35cfbfdb8c
commit a8804e2366
7 changed files with 33 additions and 362 deletions

View File

@@ -404,10 +404,10 @@ int main(int argc, char *argv[])
++itr)
{
unsigned int contextID = (*itr)->getState()->getContextID();
osg::VertexProgram::Extensions* vpExt = osg::VertexProgram::getExtensions(contextID,false);
osg::GL2Extensions* vpExt = osg::GL2Extensions::Get(contextID,false);
if (vpExt)
{
if (!vpExt->isVertexProgramSupported())
if (!vpExt->isVertexProgramSupported)
{
std::cout<<"Warning: ARB_vertex_program not supported by OpenGL drivers, unable to run application."<<std::endl;
return 1;