-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: fix corruption of bitmaps created with the ALLEGRO_NO_PRESER…
…VE_TEXTURE flag when the application loses focus. Fixes #1492 Video bitmaps created without the ALLEGRO_NO_PRESERVE_TEXTURE flag are already recovered by Allegro. I take a similar approach: - I recreate the internal textures of the bitmaps - even though they lose their pixel data - when al_acknowledge_drawing_resume() is called. - I change _al_ogl_upload_bitmap_memory() so that it accepts ptr == NULL. This function was already documented as accepting NULL, but its code demanded otherwise.
- Loading branch information
Showing
2 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters