aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Northrop <cnorthrop@google.com>2019-04-01 16:35:25 -0600
committerCody Northrop <cnorthrop@google.com>2019-04-01 16:37:04 -0600
commitb444932260a5e0416fbdd7bb97b0cefaf1558efa (patch)
tree14d8c016827399c8e4e83829a2a9ff94f972ed11
parentcd2e2cef967b007d0e588738335e69742327c0cd (diff)
downloadvulkan-validation-layers-b444932260a5e0416fbdd7bb97b0cefaf1558efa.tar.gz
Fixes error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] Change-Id: Id090c82ebfb2b9a72e84967b98516bbf43cc6513
-rw-r--r--layers/descriptor_sets.cpp2
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;