Added support for flushing buffer objects

This commit is contained in:
Robert Osfield 2007-04-04 09:07:46 +00:00
parent 24067cd26c
commit 538a83dad4
2 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class OSG_EXPORT BufferObject : public Object
/** flush all the cached display list which need to be deleted
* in the OpenGL context related to contextID.*/
void flushDeletedBufferObjects(unsigned int contextID,double /*currentTime*/, double& availableTime);
static void flushDeletedBufferObjects(unsigned int contextID,double /*currentTime*/, double& availableTime);
/** Extensions class which encapsulates the querying of extensions and
* associated function pointers, and provide convenience wrappers to

View File

@ -26,6 +26,7 @@
#include <osg/LightModel>
#include <osg/CollectOccludersVisitor>
#include <osg/Shader>
#include <osg/BufferObject>
#include <osg/GLU>
@ -817,6 +818,7 @@ void SceneView::flushAllDeletedGLObjects()
osg::FragmentProgram::flushDeletedFragmentProgramObjects(state->getContextID(),currentTime,availableTime);
osg::Program::flushDeletedGlPrograms(state->getContextID(),currentTime,availableTime);
osg::Shader::flushDeletedGlShaders(state->getContextID(),currentTime,availableTime);
osg::BufferObject::flushDeletedBufferObjects(state->getContextID(),currentTime,availableTime);
}
void SceneView::flushDeletedGLObjects(double& availableTime)
@ -836,6 +838,7 @@ void SceneView::flushDeletedGLObjects(double& availableTime)
osg::FragmentProgram::flushDeletedFragmentProgramObjects(state->getContextID(),currentTime,availableTime);
osg::Program::flushDeletedGlPrograms(state->getContextID(),currentTime,availableTime);
osg::Shader::flushDeletedGlShaders(state->getContextID(),currentTime,availableTime);
osg::BufferObject::flushDeletedBufferObjects(state->getContextID(),currentTime,availableTime);
}
void SceneView::draw()