mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-22 19:06:15 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user