iOS: Also do the Dictation crash workaround before executing the animation callback.

This commit is contained in:
Alex Szpakowski
2016-04-02 13:21:01 -03:00
parent 88372277b7
commit 6cfa71a10e
4 changed files with 27 additions and 13 deletions

View File

@@ -33,6 +33,7 @@
#include "SDL_uikitvideo.h"
#include "SDL_uikitmodes.h"
#include "SDL_uikitwindow.h"
#include "SDL_uikitopengles.h"
#if SDL_IPHONE_KEYBOARD
#include "keyinfotable.h"
@@ -102,6 +103,9 @@
{
/* Don't run the game loop while a messagebox is up */
if (!UIKit_ShowingMessageBox()) {
/* See the comment in the function definition. */
UIKit_GL_RestoreCurrentContext();
animationCallback(animationCallbackParam);
}
}