mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
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:
1 parent
8de2a236f1
commit
9137eedb7b
11 files changed
+86
-44
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user