Fixed virtual method mismtaches between subclasses and parent classes.
This commit is contained in:
parent
ee7668fe6c
commit
c617ea0163
@ -74,8 +74,8 @@ public:
|
||||
|
||||
unsigned int getNumPixels( const osg::Camera* cam );
|
||||
|
||||
|
||||
void releaseGLObjects( osg::State* state = 0 );
|
||||
virtual void releaseGLObjects( osg::State* state = 0 ) const;
|
||||
|
||||
static void deleteQueryObject( unsigned int contextID, GLuint handle );
|
||||
static void flushDeletedQueryObjects( unsigned int contextID, double currentTime, double& availableTime );
|
||||
static void discardDeletedQueryObjects( unsigned int contextID );
|
||||
|
@ -39,7 +39,7 @@ class OSGVIEWER_EXPORT Viewer : public ViewerBase, public osgViewer::View
|
||||
META_Object(osgViewer,Viewer);
|
||||
|
||||
/** Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty. */
|
||||
virtual void take(View& rhs);
|
||||
virtual void take(osg::View& rhs);
|
||||
|
||||
|
||||
/** Set the Stats object used for collect various frame related timing and scene graph stats.*/
|
||||
|
@ -373,14 +373,17 @@ QueryGeometry::getNumPixels( const osg::Camera* cam )
|
||||
|
||||
|
||||
void
|
||||
QueryGeometry::releaseGLObjects( osg::State* state )
|
||||
QueryGeometry::releaseGLObjects( osg::State* state ) const
|
||||
{
|
||||
if (!state)
|
||||
{
|
||||
// delete all query IDs for all contexts.
|
||||
reset();
|
||||
|
||||
const_cast<QueryGeometry*>(this)->reset();
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock( _mapMutex );
|
||||
|
||||
// Delete all query IDs for the specified context.
|
||||
unsigned int contextID = state->getContextID();
|
||||
ResultMap::iterator it = _results.begin();
|
||||
|
@ -248,7 +248,7 @@ Viewer::~Viewer()
|
||||
OSG_INFO<<"Viewer::~Viewer() end destructor getThreads = "<<threads.size()<<std::endl;
|
||||
}
|
||||
|
||||
void Viewer::take(View& rhs)
|
||||
void Viewer::take(osg::View& rhs)
|
||||
{
|
||||
osgViewer::View::take(rhs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user