aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index a11a214b..eb6acd14 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -6789,7 +6789,7 @@ vkAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAl
pNewNode->set = pDescriptorSets[i];
pNewNode->descriptorCount = (pLayout->createInfo.bindingCount != 0) ? pLayout->endIndex + 1 : 0;
if (pNewNode->descriptorCount) {
- pNewNode->pDescriptorUpdates.reserve(pNewNode->descriptorCount);
+ pNewNode->pDescriptorUpdates.resize(pNewNode->descriptorCount);
}
dev_data->setMap[pDescriptorSets[i]] = pNewNode;
}