From 6d1e8e2cd0e4bdd089197e6a5a72958dbb4210b0 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Fri, 23 Sep 2016 12:18:51 +0100 Subject: layers: Fix VerifyCopyUpdateContents on combined image sampler descriptors A missing break at the end of the ImageSampler case results in falling through to the Image case, leading to spurious validation errors such as: vkUpdateDescriptorsSets() failed copy update from Descriptor Set 0x108 to Descriptor Set 0x137 with error: Attempted copy update to image descriptor failed due to: Invalid VkImageView: 0x100000000 --- layers/descriptor_sets.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'layers/descriptor_sets.cpp') diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index d7ca0255..d08a110f 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -1359,6 +1359,7 @@ bool cvdescriptorset::DescriptorSet::VerifyCopyUpdateContents(const VkCopyDescri return false; } } + break; } case Image: { for (uint32_t di = 0; di < update->descriptorCount; ++di) { -- cgit v1.2.3