diff --git a/libs/app/source/app.cpp b/libs/app/source/app.cpp index 18af5768..f1cc61b5 100644 --- a/libs/app/source/app.cpp +++ b/libs/app/source/app.cpp @@ -200,7 +200,7 @@ namespace psemek::app SDL_ShowWindow(impl().window); impl().running = true; if (impl().current_scene == nullptr) - impl().get_scene()->on_scene_enter(); + on_scene_enter(); while (running()) { poll_events(); @@ -220,6 +220,7 @@ namespace psemek::app SDL_GL_SwapWindow(impl().window); } + impl().get_scene()->on_scene_exit(); } scene * app::set_scene(scene * s)