- Timestamp:
- 07/05/06 15:31:38 (7 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgshaderterrain/osgshaderterrain.cpp
r5248 r5249 737 737 738 738 virtual void operator()( osgProducer::OsgCameraGroup&, osgProducer::OsgSceneHandler& sh, const Producer::RenderSurface& ) 739 { 739 { 740 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); 741 740 742 unsigned int contextID = sh.getSceneView()->getState()->getContextID(); 741 743 osg::GL2Extensions* gl2ext = osg::GL2Extensions::Get(contextID,true); … … 756 758 } 757 759 } 758 759 }760 761 bool _supported;762 std::string _errorMessage;760 } 761 762 OpenThreads::Mutex _mutex; 763 bool _supported; 764 std::string _errorMessage; 763 765 764 766 }; … … 818 820 // create the windows and run the threads. 819 821 viewer.realize(); 820 822 821 823 // exit if we don't have the extensions this example needs. 822 824 if (!testSupportCallback->_supported) 823 825 { 824 826 osg::notify(osg::WARN)<<testSupportCallback->_errorMessage<<std::endl; 827 825 828 exit(1); 826 829 }
