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: