[Vulkan] Fix single-type descriptor pool reuse

This commit is contained in:
Triang3l 2022-05-24 22:37:49 +03:00
parent aac28f19d1
commit 9c445d397b
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ VkDescriptorSet SingleTypeDescriptorSetAllocator::Allocate(
// or will become full, and in case of a failure to allocate internally even // or will become full, and in case of a failure to allocate internally even
// though there still should be enough space, it should never be allocated // though there still should be enough space, it should never be allocated
// from again. // from again.
Page map_page = pages_usable_.crend()->second; Page map_page = page_usable_last_it->second;
pages_usable_.erase(page_usable_last_it); pages_usable_.erase(page_usable_last_it);
descriptor_set_allocate_info.descriptorPool = map_page.pool; descriptor_set_allocate_info.descriptorPool = map_page.pool;
if (dfn.vkAllocateDescriptorSets(device, &descriptor_set_allocate_info, if (dfn.vkAllocateDescriptorSets(device, &descriptor_set_allocate_info,