| | 132 | |
| | 133 | // now check to see if texture cube map is supported. |
| | 134 | for(unsigned int contextID = 0; |
| | 135 | contextID<viewer.getDisplaySettings()->getMaxNumberOfGraphicsContexts(); |
| | 136 | ++contextID) |
| | 137 | { |
| | 138 | osg::TextureCubeMap::Extensions* tcmExt = osg::TextureCubeMap::getExtensions(contextID,false); |
| | 139 | if (tcmExt) |
| | 140 | { |
| | 141 | if (!tcmExt->isCubeMapSupported()) |
| | 142 | { |
| | 143 | cout<<"Warning: texture_cube_map not supported by OpenGL drivers, unable to run application."<<std::endl; |
| | 144 | return 1; |
| | 145 | } |
| | 146 | } |
| | 147 | } |
| | 148 | |