diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 7008d3a5..01499efe 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -26,8 +26,8 @@ static HRESULT vkd3d_instance_init(struct vkd3d_instance *instance) { static const char * const extensions[] = { - "VK_KHR_surface", - "VK_KHR_xcb_surface", + VK_KHR_SURFACE_EXTENSION_NAME, + VK_KHR_XCB_SURFACE_EXTENSION_NAME, }; VkApplicationInfo application_info; @@ -359,7 +359,7 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device) { static const char * const extensions[] = { - "VK_KHR_swapchain", + VK_KHR_SWAPCHAIN_EXTENSION_NAME, }; const struct vkd3d_vk_instance_procs *vk_procs = &device->vkd3d_instance.vk_procs; diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h index ae881848..ca92ddc4 100644 --- a/libs/vkd3d/vkd3d_private.h +++ b/libs/vkd3d/vkd3d_private.h @@ -24,6 +24,7 @@ #define __VKD3D_PRIVATE_H #define VK_NO_PROTOTYPES +#define VK_USE_PLATFORM_XCB_KHR #define COBJMACROS #define NONAMELESSUNION