Fixed emscripten and iOS builds
parent
02f356439d
commit
b5347c3364
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
static void EmscriptenInternalMainloop(void)
|
static void EmscriptenInternalMainloop(void)
|
||||||
{
|
{
|
||||||
const int rc = SDL_IterateMainCallbacks();
|
const int rc = SDL_IterateMainCallbacks(SDL_TRUE);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
SDL_QuitMainCallbacks();
|
SDL_QuitMainCallbacks();
|
||||||
emscripten_cancel_main_loop(); // kill" the mainloop, so it stops calling back into it.
|
emscripten_cancel_main_loop(); // kill" the mainloop, so it stops calling back into it.
|
||||||
|
|
|
@ -47,7 +47,7 @@ static SDLIosMainCallbacksDisplayLink *globalDisplayLink;
|
||||||
|
|
||||||
- (void)appIteration:(CADisplayLink *)sender
|
- (void)appIteration:(CADisplayLink *)sender
|
||||||
{
|
{
|
||||||
const int rc = SDL_IterateMainCallbacks();
|
const int rc = SDL_IterateMainCallbacks(SDL_TRUE);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
[self.displayLink invalidate];
|
[self.displayLink invalidate];
|
||||||
self.displayLink = nil;
|
self.displayLink = nil;
|
||||||
|
|
Loading…
Reference in New Issue