Archived
1
Fork 0

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.
This commit is contained in:
Joshua Goins 2022-05-21 17:47:53 -04:00
parent 5db6f02742
commit 6645549da4

View file

@ -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()) {