From e42a9da94337e081b3a2b07f28f42292fdd71323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Mon, 24 Oct 2016 15:28:08 +0200 Subject: [PATCH] libs/vkd3d: Use VK_KHR_*_EXTENSION_NAME defines. --- libs/vkd3d/device.c | 6 +++--- libs/vkd3d/vkd3d_private.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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