diff options
author | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2015-05-18 21:21:14 +0200 |
---|---|---|
committer | Philipp Wiesemann <philipp.wiesemann@arcor.de> | 2015-05-18 21:21:14 +0200 |
commit | 12c9ba9186219d5d2b2c43e68f80a372c752f8af (patch) | |
tree | b9230b0e20bc4ff45c940c95d6b1b0f153acd2aa /test/testgamecontroller.c | |
parent | c0907c655f181b908ad5eaad5dc1ecefd16cf9ff (diff) | |
download | sdl-12c9ba9186219d5d2b2c43e68f80a372c752f8af.tar.gz |
Added missing loop cancel for Emscripten in test programs.
Diffstat (limited to 'test/testgamecontroller.c')
-rw-r--r-- | test/testgamecontroller.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testgamecontroller.c b/test/testgamecontroller.c index 414872cf2..2eb3686b4 100644 --- a/test/testgamecontroller.c +++ b/test/testgamecontroller.c @@ -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 |