Skip to content

Commit

Permalink
layer: Attempt at fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Jun 2, 2024
1 parent ce8ca94 commit 19d76cd
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions layer/VkLayer_FROG_gamescope_wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,23 @@ namespace GamescopeWSILayer {

bool valid() const { return compositor && gamescopeSwapchainFactory; }

static constexpr wl_registry_listener s_registryListener = {
.global = [](void* data, wl_registry* registry, uint32_t name, const char* interface, uint32_t version) {
auto objects = reinterpret_cast<GamescopeWaylandObjects *>(data);

if (interface == "wl_compositor"sv) {
objects->compositor = reinterpret_cast<wl_compositor *>(
wl_registry_bind(registry, name, &wl_compositor_interface, version));
} else if (interface == "gamescope_swapchain_factory_v2"sv) {
objects->gamescopeSwapchainFactory = reinterpret_cast<gamescope_swapchain_factory_v2 *>(
wl_registry_bind(registry, name, &gamescope_swapchain_factory_v2_interface, version));
}
},
.global_remove = [](void* data, wl_registry* registry, uint32_t name) {
},
};
static const wl_registry_listener s_registryListener;
};

const wl_registry_listener GamescopeWaylandObjects::s_registryListener = {
.global = [](void* data, wl_registry* registry, uint32_t name, const char* interface, uint32_t version) {
auto objects = reinterpret_cast<GamescopeWaylandObjects *>(data);

if (interface == "wl_compositor"sv) {
objects->compositor = reinterpret_cast<wl_compositor *>(
wl_registry_bind(registry, name, &wl_compositor_interface, version));
} else if (interface == "gamescope_swapchain_factory_v2"sv) {
objects->gamescopeSwapchainFactory = reinterpret_cast<gamescope_swapchain_factory_v2 *>(
wl_registry_bind(registry, name, &gamescope_swapchain_factory_v2_interface, version));
}
},
.global_remove = [](void* data, wl_registry* registry, uint32_t name) {
},
};

struct GamescopeInstanceData {
Expand Down

0 comments on commit 19d76cd

Please sign in to comment.