mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix JavaScript platform after MainLoop methods rename.
This commit is contained in:
parent
eb5304842a
commit
33e914b1eb
2 changed files with 3 additions and 3 deletions
|
@ -87,7 +87,7 @@ extern EMSCRIPTEN_KEEPALIVE int godot_js_main(int argc, char *argv[]) {
|
|||
ResourceLoader::set_abort_on_missing_resources(false);
|
||||
|
||||
Main::start();
|
||||
os->get_main_loop()->init();
|
||||
os->get_main_loop()->initialize();
|
||||
emscripten_set_main_loop(main_loop_callback, -1, false);
|
||||
// Immediately run the first iteration.
|
||||
// We are inside an animation frame, we want to immediately draw on the newly setup canvas.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue