Re: [AD] Locking problems on iphone

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


On Sat, Sep 12, 2009 at 12:14 AM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
There's a little issue right now on iphone (only iphone since it is the
only real working opengl es platform with fbo support) when locking
bitmaps. In order to read the texture data into the locked region, the
bitmap must have an fbo and it's not always the case unless that bitmap
has been set as the target bitmap before. I'm not sure of all the
implications but I would like to make it so that locking a bitmap
(unless locking writeonly) creates an fbo if one doesn't exist, so that
the surface data can be read into the locked region.. Any comments?

Just make sure it's done only when needed - i.e. not for normal OpenGL. I've had bad experience with creating more than a couple of 100 FBOs.


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