[osg-users] ShaderComposer::releaseGLObjects warning

Ulrich Hertlein u.hertlein at sandbox.de
Mon Apr 18 12:02:46 PDT 2016


Hi guys,

On 18/04/2016 20:22, Robert Osfield wrote:
> On 18 April 2016 at 17:39, Andy Skinner <Andy.Skinner at mathworks.com
> <mailto:Andy.Skinner at mathworks.com>> wrote:
>  
>     We are getting a warning for ShaderComposer::releaseGLObjects: 'void
>     osg::ShaderComposer::releaseGLObjects(osg::State *)' : member function does not
>     override any base class virtual member function   osg::Object::releaseGLObjects is
>     virtual, but osg::ShaderComposer::releaseGLObjects is not.  Is there a reason why?
> 
> Sounds like a dodgy compiler warning.

I think not, it looks like an actual bug:

osg::Object
        virtual void releaseGLObjects(osg::State* = 0) const {}

osg::ShaderComposer
        void releaseGLObjects(osg::State* state);

The ShaderComposer method is non-const and therefore does not override the osg::Object method!

Can we use the 'override' keyword yet?

Cheers,
/ulrich



More information about the osg-users mailing list