Moved the delete operations to before of the compile operations to ensure that

delete operations don't get pushed out by allocations
This commit is contained in:
Robert Osfield 2008-02-28 17:59:44 +00:00
parent 79276b3169
commit e26579b0ec

View File

@ -390,10 +390,6 @@ void Renderer::draw()
_availableQueue.add(sceneView);
double availableTime = 0.004; // 4 ms
if (databasePager && databasePager->requiresExternalCompileGLObjects(sceneView->getState()->getContextID()))
{
databasePager->compileGLObjects(*(sceneView->getState()), availableTime);
}
if (compileThread)
{
@ -404,6 +400,11 @@ void Renderer::draw()
sceneView->flushDeletedGLObjects(availableTime);
}
if (databasePager && databasePager->requiresExternalCompileGLObjects(sceneView->getState()->getContextID()))
{
databasePager->compileGLObjects(*(sceneView->getState()), availableTime);
}
if (acquireGPUStats)
{
endQuery();