Re: [AD] Conserving OpenGL FBOs

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


On 2011-03-05, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> Thomas mentioned that it would probably be better to update the timestamp of 
> the
> ALLEGRO_FBO_INFO struct whenever it's used as the target. Right now it's 
> only set on creation IIRC. Sounds like a good idea to me.

Yeah.

> > Ok, I have implemented it.  I think the new behaviour is backwards
> > compatible "enough" for 5.0.
> 
> In what ways is that _not_ compatible?

It's pretty obscure:

1. create bitmap B1
2. set up B1 with an internal FBO (not yet known to the user)
3. set n target bitmaps until FBOs start being recycled
4. now call al_get_opengl_fbo(B1)

Step four would have returned non-zero in the past, zero now.

Peter




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