layer: Handle lack of gamescope socket with grace

This commit is contained in:
Joshua Ashton 2023-01-07 12:09:12 +00:00
parent 79ce85b4cb
commit 501cb45150

View file

@ -120,8 +120,8 @@ namespace GamescopeWSILayer {
wl_display *display = wl_display_connect(gamescopeWaylandSocket());
if (!display) {
fprintf(stderr, "[Gamescope WSI] Failed to connect to gamescope socket: %s\n", gamescopeWaylandSocket());
return VK_ERROR_INCOMPATIBLE_DRIVER;
fprintf(stderr, "[Gamescope WSI] Failed to connect to gamescope socket: %s. Bypass layer will be unavailable.\n", gamescopeWaylandSocket());
return result;
}
wl_registry *registry = wl_display_get_registry(display);