[osg-users] SubloadCallback and PBO cleanup

Yurii Monakov monakov.y at gmail.com
Fri Apr 1 01:02:45 PDT 2011


Hi Mikhail,

Thank you for your answer. So I should inherit from osg::BufferObject
class and implement compileObject() method?

Yurii

2011/4/1 Mikhail I. Izmestev <izmmishao5 at gmail.com>:
> 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
> osg::BufferObject.
>
> BTW using osg::BufferObject solve problems of your code with multiple
> contexts.
>
> Mikhail.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list