Skip to content

Commit

Permalink
Fixes Bug 2134 - [Android] Black screen after resume (sometimes)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Oct 10, 2013
1 parent eaa4300 commit d0fddfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/android/SDL_androidevents.c
Expand Up @@ -72,6 +72,8 @@ Android_PumpEvents(_THIS)

#if SDL_ANDROID_BLOCK_ON_PAUSE
if (isPaused && !isPausing) {
/* Make sure this is the last thing we do before pausing */
android_egl_context_backup();
if(SDL_SemWait(Android_ResumeSem) == 0) {
#else
if (isPaused) {
Expand All @@ -92,7 +94,6 @@ Android_PumpEvents(_THIS)
isPausing = 1;
}
else {
android_egl_context_backup();
isPausing = 0;
isPaused = 1;
}
Expand Down

0 comments on commit d0fddfa

Please sign in to comment.