Added missing loop cancel for Emscripten in test programs.

This commit is contained in:
Philipp Wiesemann 2015-05-18 21:21:14 +02:00
parent b359854af7
commit 566df69b69
18 changed files with 97 additions and 0 deletions

View file

@ -175,6 +175,12 @@ loop(void *arg)
done = SDL_TRUE;
retval = SDL_TRUE; /* keep going, wait for reattach. */
}
#ifdef __EMSCRIPTEN__
if (done) {
emscripten_cancel_main_loop();
}
#endif
}
static SDL_bool