From 15429198b80e882216f7f1bd14bcd070f5f6bfc1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 15 Apr 2018 08:25:57 +0100 Subject: [PATCH] Replaced osgViewer::GraphicsWindow dynamic_cast as it's not neccessary. --- src/osgViewer/View.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("<