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();
|
virtual void discardAllGLObjects();
|
||||||
|
|
||||||
/** schedule a GL object for deletion by the graphics thread.*/
|
/** 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.*/
|
/** implementation of the actual creation of an GL object - subclasses from GLObjectManager must implement the appropriate GL calls.*/
|
||||||
virtual GLuint createGLObject();
|
virtual GLuint createGLObject();
|
||||||
|
@ -134,7 +134,7 @@ void GLObjectManager::discardAllGLObjects()
|
|||||||
_deleteGLObjectHandles.clear();
|
_deleteGLObjectHandles.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLObjectManager::sheduleGLObjectForDeletion(GLuint globj)
|
void GLObjectManager::scheduleGLObjectForDeletion(GLuint globj)
|
||||||
{
|
{
|
||||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ QueryGeometry::releaseGLObjects( osg::State* state ) const
|
|||||||
if (tr._contextID == contextID)
|
if (tr._contextID == contextID)
|
||||||
{
|
{
|
||||||
#if 1
|
#if 1
|
||||||
osg::get<QueryObjectManager>(contextID)->sheduleGLObjectForDeletion(tr._id );
|
osg::get<QueryObjectManager>(contextID)->scheduleGLObjectForDeletion(tr._id );
|
||||||
#else
|
#else
|
||||||
QueryGeometry::deleteQueryObject( contextID, tr._id );
|
QueryGeometry::deleteQueryObject( contextID, tr._id );
|
||||||
#endif
|
#endif
|
||||||
@ -398,7 +398,7 @@ QueryGeometry::releaseGLObjects( osg::State* state ) const
|
|||||||
void
|
void
|
||||||
QueryGeometry::deleteQueryObject( unsigned int contextID, GLuint handle )
|
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