From 9c445d397b252e29761e8c785f43589efca66e17 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Tue, 24 May 2022 22:37:49 +0300 Subject: [PATCH] [Vulkan] Fix single-type descriptor pool reuse --- src/xenia/ui/vulkan/single_type_descriptor_set_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/ui/vulkan/single_type_descriptor_set_allocator.cc b/src/xenia/ui/vulkan/single_type_descriptor_set_allocator.cc index 62621bb49..44a3d31fe 100644 --- a/src/xenia/ui/vulkan/single_type_descriptor_set_allocator.cc +++ b/src/xenia/ui/vulkan/single_type_descriptor_set_allocator.cc @@ -128,7 +128,7 @@ VkDescriptorSet SingleTypeDescriptorSetAllocator::Allocate( // 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 // from again. - Page map_page = pages_usable_.crend()->second; + Page map_page = page_usable_last_it->second; pages_usable_.erase(page_usable_last_it); descriptor_set_allocate_info.descriptorPool = map_page.pool; if (dfn.vkAllocateDescriptorSets(device, &descriptor_set_allocate_info,