[osg-users] ShaderComposer::releaseGLObjects warning

Jannik Heller scrawl at baseoftrash.de
Mon Apr 18 11:34:23 PDT 2016


Hi Robert

Actually there is a bug here. The ShaderComposer::releaseGLObjects does not override because it is declared without the const specifier. Object::releaseGLObjects is declared const.


> osg::Object::releaseGLObjects is virtual, but osg::ShaderComposer::releaseGLObjects is not. Is there a reason why? 

The virtual keyword doesn't really have a meaning in overridden functions. Still wouldn't hurt to add it though.

Cheers
Jannik

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66874#66874








More information about the osg-users mailing list