Fix GC issues on iOS 15 with iPhone 12

https://github.com/HaxeFoundation/hxcpp/issues/969#issuecomment-941127280
This commit is contained in:
Justin Espedal
2021-10-14 02:25:08 +09:00
committed by Joshua Granick
parent 2750cf5011
commit ed3686661a

View File

@@ -116,6 +116,13 @@ namespace lime {
void SDLApplication::HandleEvent (SDL_Event* event) { void SDLApplication::HandleEvent (SDL_Event* event) {
#if defined(IPHONE) || defined(EMSCRIPTEN)
int top = 0;
gc_set_top_of_stack(&top,false);
#endif
switch (event->type) { switch (event->type) {
case SDL_USEREVENT: case SDL_USEREVENT: