Re: [AD] Conserving OpenGL FBOs

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2011-03-04, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> On 2011-03-04, at 4:42 PM, Peter Wang wrote:
> > The documentation needs updating.  Below is what I have so far.
> > I'm not sure what we can say about the lifetime of the FBO returned by
> > al_get_opengl_fbo (see the XXX).  I don't think we should lock ourselves
> > into the current implementation.
> 
> One possible solution to this is to have another bitmap creation
> flag that forces creation of an fbo and always retains it until the
> bitmap is destroyed.

How about a flag on the bitmap once al_get_opengl_fbo is called on it?
Thereafter the bitmap will retain its FBO until the bitmap is destroyed
or al_remove_opengl_fbo is called.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/