Fixes Bug 2134 - [Android] Black screen after resume (sometimes)
This commit is contained in:
parent
dca7c7b00d
commit
f67950da0c
1 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,8 @@ Android_PumpEvents(_THIS)
|
||||||
|
|
||||||
#if SDL_ANDROID_BLOCK_ON_PAUSE
|
#if SDL_ANDROID_BLOCK_ON_PAUSE
|
||||||
if (isPaused && !isPausing) {
|
if (isPaused && !isPausing) {
|
||||||
|
/* Make sure this is the last thing we do before pausing */
|
||||||
|
android_egl_context_backup();
|
||||||
if(SDL_SemWait(Android_ResumeSem) == 0) {
|
if(SDL_SemWait(Android_ResumeSem) == 0) {
|
||||||
#else
|
#else
|
||||||
if (isPaused) {
|
if (isPaused) {
|
||||||
|
@ -92,7 +94,6 @@ Android_PumpEvents(_THIS)
|
||||||
isPausing = 1;
|
isPausing = 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
android_egl_context_backup();
|
|
||||||
isPausing = 0;
|
isPausing = 0;
|
||||||
isPaused = 1;
|
isPaused = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue