Implementated experimental reuse of PBO's after download
This commit is contained in:
@@ -1958,6 +1958,13 @@ void Texture::applyTexImage2D_load(State& state, GLenum target, const Image* ima
|
||||
if (pbo)
|
||||
{
|
||||
state.unbindPixelBufferObject();
|
||||
|
||||
BufferObject* bo = image->getBufferObject();
|
||||
if (bo->getCopyDataAndReleaseGLBufferObject())
|
||||
{
|
||||
//OSG_NOTICE<<"Release PBO"<<std::endl;
|
||||
bo->releaseGLObjects(&state);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DO_TIMING
|
||||
|
||||
Reference in New Issue
Block a user