From 5e7493ec9b62e02e0680b2729cab01cd590b312d Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Fri, 4 Oct 2024 20:32:03 +0200 Subject: [PATCH] [WIP] fix: stop scene if needed before halting engine --- src/App/Entrypoint.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/Entrypoint.hh b/src/App/Entrypoint.hh index b128a82..a0c09ba 100644 --- a/src/App/Entrypoint.hh +++ b/src/App/Entrypoint.hh @@ -61,6 +61,8 @@ int main(void) { renderer.WaitIdle(t); } + if (scene.IsRunning()) scene.Stop(); + app->Stop(scene); delete app; }