Added missing loop cancel for Emscripten in test programs.
This commit is contained in:
parent
ac10a2f29d
commit
2c4ad51d44
18 changed files with 97 additions and 0 deletions
|
@ -153,6 +153,12 @@ loop(void *arg)
|
|||
done = SDL_TRUE;
|
||||
retval = SDL_TRUE; /* keep going, wait for reattach. */
|
||||
}
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
if (done) {
|
||||
emscripten_cancel_main_loop();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
SDL_bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue