From c9027e4c6a774b267917f0070d86bf026cd10d85 Mon Sep 17 00:00:00 2001 From: hughsando Date: Sun, 18 Aug 2019 23:19:26 +0800 Subject: [PATCH] Do not make ProcessEvent call in gc-free zone. For #641 --- project/src/sdl2/SDL2Stage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/project/src/sdl2/SDL2Stage.cpp b/project/src/sdl2/SDL2Stage.cpp index 3eb3351c9..6ebd322b5 100644 --- a/project/src/sdl2/SDL2Stage.cpp +++ b/project/src/sdl2/SDL2Stage.cpp @@ -2334,6 +2334,7 @@ void StartAnimation() AutoGCBlocking block; if (sgSDLFrame->mStage->BuildCache()) { + block.Close(); Event redraw(etRedraw); sgSDLFrame->ProcessEvent(redraw); }