[osg-users] SubloadCallback and PBO cleanup

Mikhail I. Izmestev izmmishao5 at gmail.com
Fri Apr 1 00:45:51 PDT 2011

01.04.2011 11:41, Yurii Monakov wrote:

> And everything works fine until the cleanup stage. In the code above
> I've allocated a Pixel Buffer Object. Where should I place it's
> deletion function (something like ext->glDeleteBuffers(1,&m_pbo))? Or
> I should generate/delete it on every subload call with performance
> penalty?

Hi Yurii,

Instead manual generation/destructin of buffer objects use 

BTW using osg::BufferObject solve problems of your code with multiple 


More information about the osg-users mailing list