From 5b97eaeec8b04d64a510f2e095c3f49dc41cff0b Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Tue, 22 Sep 2015 10:20:23 -0600 Subject: [PATCH] WSI: Small code changes to deal with latest WSI header. A structure's sType was missed in the grand renaming that took place a while ago, and was fixed with the latest WSI header changes. --- demos/cube.c | 2 +- demos/tri.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/cube.c b/demos/cube.c index 6507438a..9fc554fb 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -727,7 +727,7 @@ static void demo_prepare_buffers(struct demo *demo) } const VkSwapchainCreateInfoKHR swap_chain = { - .sType = VK_STRUCTURE_TYPE_SWAP_CHAIN_CREATE_INFO_KHR, + .sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR, .pNext = NULL, .pSurfaceDescription = (const VkSurfaceDescriptionKHR *)&demo->surface_description, .minImageCount = desiredNumberOfSwapchainImages, diff --git a/demos/tri.c b/demos/tri.c index 69f3d64c..3d0365ba 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -540,7 +540,7 @@ static void demo_prepare_buffers(struct demo *demo) } const VkSwapchainCreateInfoKHR swap_chain = { - .sType = VK_STRUCTURE_TYPE_SWAP_CHAIN_CREATE_INFO_KHR, + .sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR, .pNext = NULL, .pSurfaceDescription = (const VkSurfaceDescriptionKHR *)&demo->surface_description, .minImageCount = desiredNumberOfSwapchainImages, -- 2.34.1