diff --git a/include/osgUtil/RenderLeaf b/include/osgUtil/RenderLeaf index 6fd2dc55e..51184efe5 100644 --- a/include/osgUtil/RenderLeaf +++ b/include/osgUtil/RenderLeaf @@ -78,12 +78,10 @@ class OSGUTIL_EXPORT RenderLeaf : public osg::Referenced #if 1 osg::Drawable* _drawable; - osg::Drawable* getDrawable() { return _drawable; } - osg::Drawable* getDrawable() const { return _drawable; } + const osg::Drawable* getDrawable() const { return _drawable; } #else osg::ref_ptr _drawable; - osg::Drawable* getDrawable() { return _drawable.get(); } - osg::Drawable* getDrawable() const { return _drawable.get(); } + const osg::Drawable* getDrawable() const { return _drawable.get(); } #endif osg::ref_ptr _projection; osg::ref_ptr _modelview;