mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-11 14:38:24 +02:00
Added missing loop cancel for Emscripten in test programs.
This commit is contained in:
@@ -241,6 +241,11 @@ loop()
|
||||
if (!Draw(&drawstates[i])) done = 1;
|
||||
}
|
||||
}
|
||||
#ifdef __EMSCRIPTEN__
|
||||
if (done) {
|
||||
emscripten_cancel_main_loop();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user