From 0b450a5113755ee8e31e10477462afb290ebd206 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 14 Aug 2016 19:30:55 +0200 Subject: [PATCH] Remove an unneeded const_cast --- src/osg/GraphicsContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/GraphicsContext.cpp b/src/osg/GraphicsContext.cpp index b0530b976..3beddee93 100644 --- a/src/osg/GraphicsContext.cpp +++ b/src/osg/GraphicsContext.cpp @@ -767,7 +767,7 @@ void GraphicsContext::removeCamera(osg::Camera* camera) nitr != nodes.end(); ++nitr) { - const_cast(*nitr)->releaseGLObjects(_state.get()); + (*nitr)->releaseGLObjects(_state.get()); } // release the context of the any RenderingCache that the Camera has.