From 6645549da46613ceea14a0afe38398b4b3b87977 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 21 May 2022 17:47:53 -0400 Subject: [PATCH] Fix bug in SDL platform code that could result in things crashing The current app is now properly set, which is used in the model compiler for example in its app_main. --- platforms/sdl/main.cpp.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/sdl/main.cpp.in b/platforms/sdl/main.cpp.in index 6f72e4e..f51d88d 100644 --- a/platforms/sdl/main.cpp.in +++ b/platforms/sdl/main.cpp.in @@ -472,9 +472,10 @@ int main(int argc, char* argv[]) { } app = new @APP_CLASS@(); - app_main(engine); engine->set_app(app); + app_main(engine); + auto end = std::chrono::high_resolution_clock::now(); while(!engine->is_quitting()) {