From Jannik Heller, "This submission fixes a typo in the new GLObjectManager
sheduleGLObjectForDeletion(GLuint globj); should be scheduleGLObjectForDeletion(GLuint globj)"
This commit is contained in:
parent
b3e0f83c07
commit
e5a7c353ae
@ -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();
|
||||
|
@ -134,7 +134,7 @@ void GLObjectManager::discardAllGLObjects()
|
||||
_deleteGLObjectHandles.clear();
|
||||
}
|
||||
|
||||
void GLObjectManager::sheduleGLObjectForDeletion(GLuint globj)
|
||||
void GLObjectManager::scheduleGLObjectForDeletion(GLuint globj)
|
||||
{
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
|
||||
|
||||
|
@ -384,7 +384,7 @@ QueryGeometry::releaseGLObjects( osg::State* state ) const
|
||||
if (tr._contextID == contextID)
|
||||
{
|
||||
#if 1
|
||||
osg::get<QueryObjectManager>(contextID)->sheduleGLObjectForDeletion(tr._id );
|
||||
osg::get<QueryObjectManager>(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<QueryObjectManager>(contextID)->sheduleGLObjectForDeletion(handle);
|
||||
osg::get<QueryObjectManager>(contextID)->scheduleGLObjectForDeletion(handle);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user