diff --git a/examples/osgshaderterrain/osgshaderterrain.cpp b/examples/osgshaderterrain/osgshaderterrain.cpp index 6b86f639d..302e99e3e 100644 --- a/examples/osgshaderterrain/osgshaderterrain.cpp +++ b/examples/osgshaderterrain/osgshaderterrain.cpp @@ -258,20 +258,17 @@ osg::Node* createScene() return scene; } -class TestSupportOperation: public osg::Operation +class TestSupportOperation: public osg::GraphicsOperation { public: TestSupportOperation(): - osg::Operation("TestSupportOperation",false), + osg::GraphicsOperation("TestSupportOperation",false), _supported(true), _errorMessage() {} - virtual void operator () (osg::Object* object) + virtual void operator () (osg::GraphicsContext* gc) { - osg::GraphicsContext* gc = dynamic_cast(object); - if (!gc) return; - OpenThreads::ScopedLock lock(_mutex); unsigned int contextID = gc->getState()->getContextID();