layer: Handle lack of gamescope socket with grace
This commit is contained in:
parent
79ce85b4cb
commit
501cb45150
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ namespace GamescopeWSILayer {
|
||||||
|
|
||||||
wl_display *display = wl_display_connect(gamescopeWaylandSocket());
|
wl_display *display = wl_display_connect(gamescopeWaylandSocket());
|
||||||
if (!display) {
|
if (!display) {
|
||||||
fprintf(stderr, "[Gamescope WSI] Failed to connect to gamescope socket: %s\n", gamescopeWaylandSocket());
|
fprintf(stderr, "[Gamescope WSI] Failed to connect to gamescope socket: %s. Bypass layer will be unavailable.\n", gamescopeWaylandSocket());
|
||||||
return VK_ERROR_INCOMPATIBLE_DRIVER;
|
return result;
|
||||||
}
|
}
|
||||||
wl_registry *registry = wl_display_get_registry(display);
|
wl_registry *registry = wl_display_get_registry(display);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue