[Vulkan] Fix single-type descriptor pool reuse
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user