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 b359854af7
commit 566df69b69
18 changed files with 97 additions and 0 deletions

View file

@ -266,6 +266,12 @@ void loop()
}
}
DrawScreen(screen, window);
#ifdef __EMSCRIPTEN__
if (quitting) {
emscripten_cancel_main_loop();
}
#endif
}
int main(int argc, char* argv[])