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:
parent
5db6f02742
commit
6645549da4
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Reference in a new issue