diff --git a/include/osg/GLObjects b/include/osg/GLObjects index 67b4e2da7..2a50e8593 100644 --- a/include/osg/GLObjects +++ b/include/osg/GLObjects @@ -109,7 +109,7 @@ public: virtual void discardAllGLObjects(); /** schedule a GL object for deletion by the graphics thread.*/ - virtual void sheduleGLObjectForDeletion(GLuint globj); + virtual void scheduleGLObjectForDeletion(GLuint globj); /** implementation of the actual creation of an GL object - subclasses from GLObjectManager must implement the appropriate GL calls.*/ virtual GLuint createGLObject(); diff --git a/src/osg/GLObjects.cpp b/src/osg/GLObjects.cpp index e5e470263..edc7e86d3 100644 --- a/src/osg/GLObjects.cpp +++ b/src/osg/GLObjects.cpp @@ -134,7 +134,7 @@ void GLObjectManager::discardAllGLObjects() _deleteGLObjectHandles.clear(); } -void GLObjectManager::sheduleGLObjectForDeletion(GLuint globj) +void GLObjectManager::scheduleGLObjectForDeletion(GLuint globj) { OpenThreads::ScopedLock lock(_mutex); diff --git a/src/osg/OcclusionQueryNode.cpp b/src/osg/OcclusionQueryNode.cpp index cc3a7627f..24a004465 100644 --- a/src/osg/OcclusionQueryNode.cpp +++ b/src/osg/OcclusionQueryNode.cpp @@ -384,7 +384,7 @@ QueryGeometry::releaseGLObjects( osg::State* state ) const if (tr._contextID == contextID) { #if 1 - osg::get(contextID)->sheduleGLObjectForDeletion(tr._id ); + osg::get(contextID)->scheduleGLObjectForDeletion(tr._id ); #else QueryGeometry::deleteQueryObject( contextID, tr._id ); #endif @@ -398,7 +398,7 @@ QueryGeometry::releaseGLObjects( osg::State* state ) const void QueryGeometry::deleteQueryObject( unsigned int contextID, GLuint handle ) { - osg::get(contextID)->sheduleGLObjectForDeletion(handle); + osg::get(contextID)->scheduleGLObjectForDeletion(handle); }