| | 408 | // now check to see if vertex program is supported. |
| | 409 | for(unsigned int contextID = 0; |
| | 410 | contextID<viewer.getDisplaySettings()->getMaxNumberOfGraphicsContexts(); |
| | 411 | ++contextID) |
| | 412 | { |
| | 413 | osg::VertexProgram::Extensions* vpExt = osg::VertexProgram::getExtensions(contextID,false); |
| | 414 | if (vpExt) |
| | 415 | { |
| | 416 | if (!vpExt->isVertexProgramSupported()) |
| | 417 | { |
| | 418 | cout<<"Warning: ARB_vertex_program not supported by OpenGL drivers, unable to run application."<<std::endl; |
| | 419 | return 1; |
| | 420 | } |
| | 421 | } |
| | 422 | } |
| | 423 | |