diff options
author | Cody Northrop <cnorthrop@google.com> | 2019-04-01 16:35:25 -0600 |
---|---|---|
committer | Cody Northrop <cnorthrop@google.com> | 2019-04-01 16:37:04 -0600 |
commit | b444932260a5e0416fbdd7bb97b0cefaf1558efa (patch) | |
tree | 14d8c016827399c8e4e83829a2a9ff94f972ed11 | |
parent | cd2e2cef967b007d0e588738335e69742327c0cd (diff) | |
download | vulkan-validation-layers-b444932260a5e0416fbdd7bb97b0cefaf1558efa.tar.gz |
android: Make clang happy with bracesandroid-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-o-mr1-iot-release-1.0.12oreo-mr1-iot-release
Fixes error:
suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
Change-Id: Id090c82ebfb2b9a72e84967b98516bbf43cc6513
-rw-r--r-- | layers/descriptor_sets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index 67b0b1b56..9cb7df2b9 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -1507,7 +1507,7 @@ bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout if ((type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE) || (type == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)) { // Test that the layout is compatible with the descriptorType for the two sampled image types const static std::array<VkImageLayout, 3> valid_layouts = { - VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL}; + {VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL}}; struct ExtensionLayout { VkImageLayout layout; |