diff options
-rw-r--r-- | src/vulkan/wsi/wsi_common_display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index 1dbed08d8a7..5cebde5b9bc 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -2308,6 +2308,7 @@ wsi_acquire_xlib_display(VkPhysicalDevice physical_device, if (!crtc) return VK_ERROR_INITIALIZATION_FAILED; +#ifdef HAVE_DRI3_MODIFIERS xcb_randr_lease_t lease = xcb_generate_id(connection); xcb_randr_create_lease_cookie_t cl_c = xcb_randr_create_lease(connection, root, lease, 1, 1, @@ -2328,6 +2329,7 @@ wsi_acquire_xlib_display(VkPhysicalDevice physical_device, return VK_ERROR_INITIALIZATION_FAILED; wsi->fd = fd; +#endif return VK_SUCCESS; } |