diff --git a/src/Backends/WaylandBackend.cpp b/src/Backends/WaylandBackend.cpp index ab6d30c397..f589b21bb0 100644 --- a/src/Backends/WaylandBackend.cpp +++ b/src/Backends/WaylandBackend.cpp @@ -1,3 +1,5 @@ +#define VK_USE_PLATFORM_WAYLAND_KHR + #include "backend.h" #include "rendervulkan.hpp" #include "wlserver.hpp" @@ -2117,7 +2119,8 @@ namespace gamescope std::span CWaylandBackend::GetInstanceExtensions() const { - return std::span{}; + static const std::array pszInstanceExtensions {VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME}; + return std::span{pszInstanceExtensions.begin(), pszInstanceExtensions.end()}; } std::span CWaylandBackend::GetDeviceExtensions( VkPhysicalDevice pVkPhysicalDevice ) const