Re: [AD] al_acknowledge_display_disconnected

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


On 2012-05-22, at 7:04 PM, Peter Wang wrote:
>> No clue mate. Sounds too complicated.
> 
> Out of interest, when *do* you get the display disconnected event?

There are two events: The one iOS sends you and the one Allegro sends the user.

You get the one from iOS when a display is disconnected -- as far as I can tell, as soon as you get it your gl state may still be valid but you've got the clean it up, destroy it, and return from that method.

The Allegro event is sent first thing when the iOS event is received by Allegro. After that, that method, which is called from some other thread, waits for the display to be destroyed and then does some housekeeping and returns.

HTH
Trent



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