From 4a1f033dbe4f1e9851d8e025925480f719fe9d30 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 27 Apr 2016 08:40:35 +0100 Subject: [PATCH] Added non const releaseGLObjects(osg::State* state) for backwards compatibility --- include/osg/ShaderComposer | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/osg/ShaderComposer b/include/osg/ShaderComposer index 68c6d6c39..f39d09233 100644 --- a/include/osg/ShaderComposer +++ b/include/osg/ShaderComposer @@ -39,6 +39,9 @@ class OSG_EXPORT ShaderComposer : public osg::Object virtual osg::Shader* composeMain(const Shaders& shaders); virtual void addShaderToProgram(Program* program, const Shaders& shaders); + /// kept for backward compatibility + void releaseGLObjects(osg::State* state) { static_cast(this)->releaseGLObjects(state); } + virtual void releaseGLObjects(osg::State* state) const; protected: