Hi guys,
On 18/04/2016 20:22, Robert Osfield wrote:
> On 18 April 2016 at 17:39, Andy Skinner <[email protected]
> <mailto:[email protected]>> 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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org