diff --git a/include/osgViewer/Viewer b/include/osgViewer/Viewer index 266e604a9..032c4027f 100644 --- a/include/osgViewer/Viewer +++ b/include/osgViewer/Viewer @@ -114,8 +114,8 @@ class OSGVIEWER_EXPORT Viewer : public ViewerBase, public osgViewer::View virtual void getUsage(osg::ApplicationUsage& usage) const; // ensure that osg::View provides the reiszerGLObjects and releaseGLObjects methods - using osg::View::resizeGLObjectBuffers; - using osg::View::releaseGLObjects; + virtual void resizeGLObjectBuffers(unsigned int maxSize) { osg::View::resizeGLObjectBuffers(maxSize); } + virtual void releaseGLObjects(osg::State* state = 0) const { osg::View::releaseGLObjects(state); } protected: