diff options
| author | 2019-10-18 20:52:09 +0000 | |
|---|---|---|
| committer | 2019-10-18 20:52:09 +0000 | |
| commit | 1c272f541c76eed8ee97eccd76abe89797703218 (patch) | |
| tree | 7351723cc5a77cc71d5a6a8b9e78266fa9546b59 | |
| parent | 588cfdbb155317f4cd471cb8f5bfc7c74b58aae8 (diff) | |
| parent | e745a3ecceca4ebe2419435b4270a972b77bf635 (diff) | |
Merge "[vulkan] fix -Wreorder-init-list"
| -rw-r--r-- | vulkan/libvulkan/swapchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkan/libvulkan/swapchain.cpp b/vulkan/libvulkan/swapchain.cpp index d60eaa7c21..bbf50a1529 100644 --- a/vulkan/libvulkan/swapchain.cpp +++ b/vulkan/libvulkan/swapchain.cpp @@ -1291,6 +1291,7 @@ VkResult CreateSwapchainKHR(VkDevice device, VkImageCreateInfo image_create = { .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, .pNext = &image_native_buffer, + .flags = createProtectedSwapchain ? VK_IMAGE_CREATE_PROTECTED_BIT : 0u, .imageType = VK_IMAGE_TYPE_2D, .format = create_info->imageFormat, .extent = {0, 0, 1}, @@ -1299,7 +1300,6 @@ VkResult CreateSwapchainKHR(VkDevice device, .samples = VK_SAMPLE_COUNT_1_BIT, .tiling = VK_IMAGE_TILING_OPTIMAL, .usage = create_info->imageUsage, - .flags = createProtectedSwapchain ? VK_IMAGE_CREATE_PROTECTED_BIT : 0u, .sharingMode = create_info->imageSharingMode, .queueFamilyIndexCount = create_info->queueFamilyIndexCount, .pQueueFamilyIndices = create_info->pQueueFamilyIndices, |