diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index 2e7265aa9..023f555b7 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -885,7 +885,7 @@ bool View::containsCamera(const osg::Camera* camera) const const osg::Camera* View::getCameraContainingPosition(float x, float y, float& local_x, float& local_y) const { const osgGA::GUIEventAdapter* eventState = getEventQueue()->getCurrentEventState(); - const osgViewer::GraphicsWindow* gw = dynamic_cast(eventState->getGraphicsContext()); + const osg::GraphicsContext* gc = eventState->getGraphicsContext(); bool view_invert_y = eventState->getMouseYOrientation()==osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS; // OSG_NOTICE<<"getCameraContainingPosition("<