WSI: Small code changes to deal with latest WSI header.
authorIan Elliott <ian@lunarg.com>
Tue, 22 Sep 2015 16:20:23 +0000 (10:20 -0600)
committerIan Elliott <ian@lunarg.com>
Tue, 22 Sep 2015 16:25:53 +0000 (10:25 -0600)
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
demos/tri.c

index 6507438aa2a0878a394b132ed43df9fd1e10810b..9fc554fb7f5233828fdf54921549fab565271e24 100644 (file)
@@ -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,
index 69f3d64c4d3a806b3f7d52cc237973435ee45149..3d0365baa8f7555f45ef1b7d2e019f7d1eaac3b5 100644 (file)
@@ -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,