[Android] Fixes Bug 2041 - can't get SDL_QUIT event...
Thanks to Denis Bernard! Also, changed the Android manifest so the app doesn't quit with orientation changes, and made testgles.c exit properly on Android.
This commit is contained in:
parent
344ed6c986
commit
dd726d96bf
5 changed files with 18 additions and 5 deletions
|
@ -82,7 +82,9 @@ Android_PumpEvents(_THIS)
|
|||
isPaused = 0;
|
||||
|
||||
/* Restore the GL Context from here, as this operation is thread dependent */
|
||||
android_egl_context_restore();
|
||||
if (!SDL_HasEvent(SDL_QUIT)) {
|
||||
android_egl_context_restore();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue