Use number of cubes for max. number of sets to allocate

Fixes #518
This commit is contained in:
saschawillems 2018-11-10 20:40:33 +01:00
parent 33870e46e3
commit c3e39e555a

View file

@ -231,7 +231,7 @@ public:
descriptorPoolCI.poolSizeCount = static_cast<uint32_t>(descriptorPoolSizes.size());
descriptorPoolCI.pPoolSizes = descriptorPoolSizes.data();
// Max. number of descriptor sets that can be allocted from this pool (one per object)
descriptorPoolCI.maxSets = static_cast<uint32_t>(descriptorPoolSizes.size());
descriptorPoolCI.maxSets = static_cast<uint32_t>(cubes.size());
VK_CHECK_RESULT(vkCreateDescriptorPool(device, &descriptorPoolCI, nullptr, &descriptorPool));