Re: [AD] List of sub bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Thu May 10, 2012, Elias Pschernig wrote:
> On Thu, 10 May 2012 08:55:26 -0600
>
> Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> > It sounds like if the extra struct isn't updated, then it doesn't
> > properly restore sub bitmaps.
>
> But what is "restore"? If it was al_set_target_bitmap or
> al_lock_bitmap, Allegro itself should update the sub bitmaps.
Not if the texture id in the sub bitmap is wrong after the restore :P (in
general) when android pauses you, all of your GL/EGL state is wiped. All
textures, handles, whatever, is now invalid. If the sub bitmap's extra struct,
including the texture member hasn't been updated, it means that subbitmap is
broken. That is if allegro actually uses that data for anything (why doesn't
it just use the parent's?)
> ---------------------------------------------------------------------------
> --- Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx