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.
diff --git a/demos/cube.c b/demos/cube.c
index 6507438..9fc554f 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -727,7 +727,7 @@
}
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 69f3d64..3d0365b 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -540,7 +540,7 @@
}
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/tests/vktestframework.cpp b/tests/vktestframework.cpp
index 1851eed..a3df472 100644
--- a/tests/vktestframework.cpp
+++ b/tests/vktestframework.cpp
@@ -877,7 +877,7 @@
assert((surfProperties.supportedUsageFlags & VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT) != 0);
VkSwapchainCreateInfoKHR swap_chain = {};
- swap_chain.sType = VK_STRUCTURE_TYPE_SWAP_CHAIN_CREATE_INFO_KHR;
+ swap_chain.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR;
swap_chain.pNext = NULL;
swap_chain.pSurfaceDescription = (const VkSurfaceDescriptionKHR *)&m_surface_description;
swap_chain.minImageCount = desiredNumberOfSwapchainImages;