aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorCody Northrop <cody@lunarg.com>2015-10-26 14:07:35 -0600
committerCody Northrop <cody@lunarg.com>2015-10-27 17:28:41 -0600
commit97f2dcb318d61bdf4a723319416d989a097e830c (patch)
tree265032c0445d36be2c4089e4d69462935fb0473c /layers/draw_state.cpp
parent54bd6f99cece3403747db2d4a868bdfe4a6480b5 (diff)
downloadusermoji-97f2dcb318d61bdf4a723319416d989a097e830c.tar.xz
windows: Fix vector resizing in draw_state
Diffstat (limited to 'layers/draw_state.cpp')
-rwxr-xr-xlayers/draw_state.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 01e72e0f..f922500b 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -2027,7 +2027,7 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateDescriptorSetLayout(VkDevice device, cons
}
}
if (totalCount > 0) {
- pNewNode->descriptorTypes.reserve(totalCount);
+ pNewNode->descriptorTypes.resize(totalCount);
uint32_t offset = 0;
uint32_t j = 0;
for (uint32_t i=0; i<pCreateInfo->count; i++) {
@@ -2055,12 +2055,12 @@ VkResult VKAPI vkCreatePipelineLayout(VkDevice device, const VkPipelineLayoutCre
VkResult result = dev_data->device_dispatch_table->CreatePipelineLayout(device, pCreateInfo, pPipelineLayout);
if (VK_SUCCESS == result) {
PIPELINE_LAYOUT_NODE plNode = dev_data->pipelineLayoutMap[pPipelineLayout->handle];
- plNode.descriptorSetLayouts.reserve(pCreateInfo->descriptorSetCount);
+ plNode.descriptorSetLayouts.resize(pCreateInfo->descriptorSetCount);
uint32_t i = 0;
for (i=0; i<pCreateInfo->descriptorSetCount; ++i) {
plNode.descriptorSetLayouts[i] = pCreateInfo->pSetLayouts[i];
}
- plNode.pushConstantRanges.reserve(pCreateInfo->pushConstantRangeCount);
+ plNode.pushConstantRanges.resize(pCreateInfo->pushConstantRangeCount);
for (i=0; i<pCreateInfo->pushConstantRangeCount; ++i) {
plNode.pushConstantRanges[i] = pCreateInfo->pPushConstantRanges[i];
}