From 4e02585f6b4501ed374e10b9df305bdaf959b750 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 29 Sep 2023 15:17:15 +0100 Subject: [PATCH] layer: Handle non-gamescope swapchains gracefully --- layer/VkLayer_FROG_gamescope_wsi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index 398425334..cfd668a1b 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -813,8 +813,8 @@ namespace GamescopeWSILayer { } } - assert(display); - waylandPumpEvents(display); + if (display) + waylandPumpEvents(display); VkResult result = pDispatch->QueuePresentKHR(queue, pPresentInfo);