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 5:37 PM, Peter Wang wrote:
> > 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.
>
> Ya, that could work. I was thinking about reference counting and an
> al_release_opengl_fbo but that's harder to manage I think.
Ok, I have implemented it. I think the new behaviour is backwards
compatible "enough" for 5.0.
Peter