test/testdraw2.c
changeset 9607 7746ab058d12
parent 9278 8900afb78a19
child 9619 b94b6d0bff0f
--- a/test/testdraw2.c	Mon May 18 21:17:13 2015 +0200
+++ b/test/testdraw2.c	Mon May 18 21:21:14 2015 +0200
@@ -198,6 +198,11 @@
 
         SDL_RenderPresent(renderer);
     }
+#ifdef __EMSCRIPTEN__
+    if (done) {
+        emscripten_cancel_main_loop();
+    }
+#endif
 }
 
 int