![]() |
|
lost device again |
allandy
Member #14,845
January 2013
|
I have to continue this problem: I haven't looked yet into the 5.1.5-branch, but tested Allegro 5.0.9 with my With Allegro 5.0.9 a combination like this handles the problem in most cases: 1 ALLEGRO_LOCKED_REGION* ar;
2
3 while (al_is_d3d_device_lost(al5_display));
4
5 ar = al_lock_bitmap(al_get_backbuffer(al5_display), ALLEGRO_PIXEL_FORMAT_ANY, 0);
...but there is still a little timing glitch that may slip through to: and throws an exception. |
Peter Wang
Member #23
April 2000
|
Can you provide a test case? Also, use proper code tags.
|
allandy
Member #14,845
January 2013
|
http://www.akluwi.de/al/al_lcktest.zip This is even more mysterious. |
|