Added non const releaseGLObjects(osg::State* state) for backwards compatibility

This commit is contained in:
Robert Osfield
2016-04-27 08:40:35 +01:00
parent ec19ee9655
commit 4a1f033dbe

View File

@@ -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<const ShaderComposer*>(this)->releaseGLObjects(state); }
virtual void releaseGLObjects(osg::State* state) const;
protected: