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 ac10a2f29d
commit 2c4ad51d44
18 changed files with 97 additions and 0 deletions

View file

@ -241,6 +241,11 @@ loop()
if (!Draw(&drawstates[i])) done = 1;
}
}
#ifdef __EMSCRIPTEN__
if (done) {
emscripten_cancel_main_loop();
}
#endif
}
int