layer: Handle non-gamescope swapchains gracefully

This commit is contained in:
Joshua Ashton 2023-09-29 15:17:15 +01:00
parent 2633bb4778
commit 4e02585f6b

View file

@ -813,8 +813,8 @@ namespace GamescopeWSILayer {
}
}
assert(display);
waylandPumpEvents(display);
if (display)
waylandPumpEvents(display);
VkResult result = pDispatch->QueuePresentKHR(queue, pPresentInfo);