Windows/Vulkan: Correctly handle minimizing and restoring the window

We can't create a swapchain in this case but we still want emulation to
keep running. So we ditch the last renderpass in VulkanQueueRunner but
run all the rest (if PauseWhenMinimized isn't set).

Now works without any validation errors or hangs.
This commit is contained in:
Henrik Rydgård committed 2025-07-18 20:01:48 +02:00
1 parent 8de2a236f1
commit 9137eedb7b
11 files changed
+86 -44

No files matched your search

+5
View File
@@ -1134,6 +1134,11 @@ void NativeFrame(GraphicsContext *graphicsContext) {
}
for (const auto &item : toProcess) {
// Hack.
if (item.message == UIMessage::WINDOW_RESTORED && graphicsContext) {
graphicsContext->NotifyWindowRestored();
}
if (HandleGlobalMessage(item.message, item.value)) {
// TODO: Add a to-string thingy.
VERBOSE_LOG(Log::System, "Handled global message: %d / %s", (int)item.message, item.value.c_str());