Fix guest shutdown when VideoOut window is closed (#184)

Propagate Silk window close to runtime teardown so audio and CPU workers stop instead of continuing after the presentation window is dismissed.
This commit is contained in:
Mike Saito
2026-07-15 00:52:01 +03:00
committed by GitHub
parent d2f3511002
commit caf859cc52
7 changed files with 191 additions and 4 deletions
@@ -1154,7 +1154,13 @@ internal static unsafe class VulkanVideoPresenter
_window = Window.Create(options);
_window.Load += Initialize;
_window.Render += Render;
_window.Closing += DisposeVulkan;
_window.Closing += OnWindowClosing;
}
private void OnWindowClosing()
{
VideoOutExports.NotifyPresentationWindowClosed();
DisposeVulkan();
}
public void Run() => _window.Run();