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/testspriteminimal.c | |
parent | c0907c655f181b908ad5eaad5dc1ecefd16cf9ff (diff) | |
download | sdl-12c9ba9186219d5d2b2c43e68f80a372c752f8af.tar.gz |
Added missing loop cancel for Emscripten in test programs.
Diffstat (limited to 'test/testspriteminimal.c')
-rw-r--r-- | test/testspriteminimal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c index fc7d31f17..82bee9c19 100644 --- a/test/testspriteminimal.c +++ b/test/testspriteminimal.c @@ -136,6 +136,11 @@ void loop() } } MoveSprites(renderer, sprite); +#ifdef __EMSCRIPTEN__ + if (done) { + emscripten_cancel_main_loop(); + } +#endif } int |